1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-19 10:54:16 +02:00

Merge pull request #321 from Sundrique/volume-handler-fix

Fix volume handler initial position
This commit is contained in:
Steve Heffernan 2013-02-13 16:19:21 -08:00
commit 1905e59bdb

2
src/js/controls.js vendored
View File

@ -786,6 +786,8 @@ vjs.VolumeControl.prototype.createEl = function(){
*/
vjs.VolumeBar = function(player, options){
goog.base(this, player, options);
setTimeout(vjs.bind(this, this.update), 0); // update when elements is in DOM
};
goog.inherits(vjs.VolumeBar, vjs.Slider);