lightslider icon indicating copy to clipboard operation
lightslider copied to clipboard

On most page loads the slider cannot be seen

Open acrolink opened this issue 6 years ago • 3 comments

It works sometimes but most of the time it is not to be seen. Inspecting css/html shows that the code is there but the height of .lSSlideWrapper.usingCss is zero.

acrolink avatar Feb 09 '19 10:02 acrolink

when images are large and resized with CSS and if "autoWidth" is set to true, then width of whole <ul> element becomes zero and slider is not to be seen. after loading slider, if we resize the browser window it becomes visible.

AniruddhPurohit avatar Feb 26 '19 08:02 AniruddhPurohit

when images are large and resized with CSS and if "autoWidth" is set to true, then width of whole <ul> element becomes zero and slider is not to be seen. after loading slider, if we resize the browser window it becomes visible.

This is happening to me too exactly as described here.

LuisHerrero92 avatar Jun 19 '19 11:06 LuisHerrero92

$(window).on("load", function() {
  slider.refresh();
})

Or create the slider on load.

haferburg avatar Apr 29 '20 21:04 haferburg