зеркало из https://github.com/mozilla/gecko-dev.git
Bug 729111 - Redisplay centered play video button after video is resized. r=jaws
This commit is contained in:
Родитель
1350c8222e
Коммит
305d15f8a8
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче