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' into stable

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

View File

@ -19,3 +19,6 @@ CHANGELOG
---- 3.0.7 / 2012-01-12 / fixing-ie8-poster-bug -------------------------------- ---- 3.0.7 / 2012-01-12 / fixing-ie8-poster-bug --------------------------------
* Fixed an ie8 breaking bug with the poster * Fixed an ie8 breaking bug with the poster
---- 3.0.8 / 2012-01-23 / fix-ie-controls-hiding -------------------------------
* CFixed issue with controls not hiding in IE due to no opacity support

View File

@ -1,4 +1,4 @@
--- ---
major: 3 major: 3
patch: 7 patch: 8
minor: 0 minor: 0

8
src/controls.js vendored
View File

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