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

@mmcc fixed an issue with the VolumeButton assuming it was vertical by default. closes #1592

This commit is contained in:
Matthew McClure 2014-10-28 11:19:34 -07:00 committed by Steve Heffernan
parent 4b818d9ebf
commit f5117ae976
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ CHANGELOG
* @heff updated the poster to use CSS styles to display; fixed the poster not showing if not originally set ([view](https://github.com/videojs/video.js/pull/1568))
* @mmcc fixed an issue where errors on source tags could get missed ([view](https://github.com/videojs/video.js/pull/1575))
* @heff enhanced the event listener API to allow for auto-cleanup of listeners on other componenets and elements ([view](https://github.com/videojs/video.js/pull/1588))
* @mmcc fixed an issue with the VolumeButton assuming it was vertical by default ([view](https://github.com/videojs/video.js/pull/1592))
--------------------

View File

@ -29,7 +29,7 @@ vjs.VolumeMenuButton.prototype.createMenu = function(){
var menu = new vjs.Menu(this.player_, {
contentElType: 'div'
});
var vc = new vjs.VolumeBar(this.player_, vjs.obj.merge({'vertical': true}, this.options_.volumeBar));
var vc = new vjs.VolumeBar(this.player_, this.options_.volumeBar);
vc.on('focus', function() {
menu.lockShowing();
});