Fix height bug.(padding-top set to 0)

This commit is contained in:
BoHung Chiu 2022-03-07 18:47:51 +08:00
parent 98d4e80737
commit aba83ea30e
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
'onReady': function(event){ 'onReady': function(event){
var height = $(event.target.getIframe()).height(); var height = $(event.target.getIframe()).height();
var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0); var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0);
banner_wrap.height(height).css({"padding-bottom":"","padding-top":""}); banner_wrap.height(height).css({"padding-bottom":"","padding-top":"0"});
banner_wrap.find(".cycle-carousel-wrap").css("top","3em"); banner_wrap.find(".cycle-carousel-wrap").css("top","3em");
try{ try{
delete (event.target.B || event.target.H || event.target.I).onStateChange; delete (event.target.B || event.target.H || event.target.I).onStateChange;