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

Added a fix for IE controls hiding

This commit is contained in:
Steve Heffernan
2012-01-23 16:00:51 -08:00
parent 3708b1b6a5
commit c0c6db7071

8
src/controls.js vendored
View File

@ -236,10 +236,18 @@ _V_.ControlBar = _V_.Component.extend({
// Used for transitions (fading out)
reveal: function(){
this.el.style.opacity = 1;
// IE doesn't support opacity, so use display instead
if ( !('opacity' in document.body.style) ) {
this.show();
}
},
conceal: function(){
this.el.style.opacity = 0;
if ( !('opacity' in document.body.style) ) {
this.hide();
}
}
});