From aba83ea30eff15eb96cc63499bc2115d454613ff Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 7 Mar 2022 18:47:51 +0800 Subject: [PATCH] Fix height bug.(padding-top set to 0) --- modules/ad_banner/_ad_banner_widget2_video.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 746218b..c80df69 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -129,7 +129,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ 'onReady': function(event){ var height = $(event.target.getIframe()).height(); 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"); try{ delete (event.target.B || event.target.H || event.target.I).onStateChange;