remove cyclediv padding-top when initializing.

This commit is contained in:
BoHung Chiu 2022-03-07 18:13:45 +08:00
parent d3e1b55840
commit 98d4e80737
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@
var is_frontend = <%= @is_frontend ? true : false %>;
if(is_frontend){
var cyclediv = $(this).parents("div.cycle-slideshow").eq(0);
cyclediv.css("padding-top",'0');
if(cyclediv.height() == 0 || cyclediv.data("auto-height")){
cyclediv.data("auto-height",true);
var video_block = cyclediv.find('video')[0];