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

Merge branch 'hotfix/fix-ie-controls-hiding'

This commit is contained in:
Steve Heffernan
2012-01-23 16:02:53 -08:00
3 changed files with 12 additions and 1 deletions

8
src/controls.js vendored
View File

@ -240,10 +240,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();
}
}
});