Bug 729111 - Redisplay centered play video button after video is resized. r=jaws

This commit is contained in:
Danny Chen 2014-04-01 09:11:41 -04:00
parent 1350c8222e
commit 305d15f8a8

View File

@ -1390,8 +1390,10 @@
let videoHeight = isAudioOnly ? minHeightForControlBar : this.video.clientHeight;
let videoWidth = isAudioOnly ? minWidthAllControls : this.video.clientWidth;
if (this._overlayPlayButtonHeight > videoHeight || this._overlayPlayButtonWidth > videoWidth)
if ((this._overlayPlayButtonHeight + this._controlBarHeight) > videoHeight || this._overlayPlayButtonWidth > videoWidth)
this.clickToPlay.hidden = true;
else if (this.clickToPlay.hidden && !this.video.played.length)
this.clickToPlay.hidden = false;
let size = "normal";
if (videoHeight < minHeightForControlBar)