Skip to content

Commit ef2c7eb

Browse files
authored
fix(Ads): Fix ad position by default (#7659)
Regression of 70257ff
1 parent 70257ff commit ef2c7eb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/ads/interstitial_ad_manager.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ shaka.ads.InterstitialAdManager = class {
255255
this.lastPlayedAd_ = null;
256256
if (!this.usingBaseVideo_) {
257257
this.video_.loop = false;
258-
this.video_.style.height = '';
259-
this.video_.style.left = '';
260-
this.video_.style.top = '';
261-
this.video_.style.width = '';
258+
this.video_.style.height = '100%';
259+
this.video_.style.left = '0';
260+
this.video_.style.top = '0';
261+
this.video_.style.width = '100%';
262262
}
263263
}
264264

@@ -573,10 +573,10 @@ shaka.ads.InterstitialAdManager = class {
573573
this.baseVideo_.currentTime += interstitial.resumeOffset;
574574
}
575575
this.video_.loop = false;
576-
this.video_.style.height = '';
577-
this.video_.style.left = '';
578-
this.video_.style.top = '';
579-
this.video_.style.width = '';
576+
this.video_.style.height = '100%';
577+
this.video_.style.left = '0';
578+
this.video_.style.top = '0';
579+
this.video_.style.width = '100%';
580580
}
581581
}
582582

0 commit comments

Comments
 (0)