remove cyclediv padding-top when initializing.
This commit is contained in:
parent
d3e1b55840
commit
98d4e80737
|
@ -234,6 +234,7 @@
|
||||||
var is_frontend = <%= @is_frontend ? true : false %>;
|
var is_frontend = <%= @is_frontend ? true : false %>;
|
||||||
if(is_frontend){
|
if(is_frontend){
|
||||||
var cyclediv = $(this).parents("div.cycle-slideshow").eq(0);
|
var cyclediv = $(this).parents("div.cycle-slideshow").eq(0);
|
||||||
|
cyclediv.css("padding-top",'0');
|
||||||
if(cyclediv.height() == 0 || cyclediv.data("auto-height")){
|
if(cyclediv.height() == 0 || cyclediv.data("auto-height")){
|
||||||
cyclediv.data("auto-height",true);
|
cyclediv.data("auto-height",true);
|
||||||
var video_block = cyclediv.find('video')[0];
|
var video_block = cyclediv.find('video')[0];
|
||||||
|
|
Loading…
Reference in New Issue