You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LightSlider has been great - a real lifesaver... One problem I have had is for text or Highcharts content (i.e. not images) that are delivered to the DIV from AJAX, the LightSlider doesn't know the height of the future content so it assigns zero height. I've tried setting up the OnSliderLoad event with a call to height(), and that worked when I only had one slider. When I added a second instance, only one of the sliders would resize to accommodate the AJAX content. I think maybe the onSliderLoad isn't separate for each instance of the Lightslider...
Nonetheless, after much fussing with this problem, I ended up styling the UL with "min-height" set with a value that is guaranteed to fit the AJAX content.
Is there a better way to have the DIV/UL respond to AJAX content correctly?
One other option could be to call LightSlider in the AJAX success, but this is very awkward since several AJAX calls are involved, plus I'd rather have the space allocated for the slider div as soon as possible to avoid jumping boxes as they get filled.
Thanks
The text was updated successfully, but these errors were encountered:
LightSlider has been great - a real lifesaver... One problem I have had is for text or Highcharts content (i.e. not images) that are delivered to the DIV from AJAX, the LightSlider doesn't know the height of the future content so it assigns zero height. I've tried setting up the OnSliderLoad event with a call to height(), and that worked when I only had one slider. When I added a second instance, only one of the sliders would resize to accommodate the AJAX content. I think maybe the onSliderLoad isn't separate for each instance of the Lightslider...
Nonetheless, after much fussing with this problem, I ended up styling the UL with "min-height" set with a value that is guaranteed to fit the AJAX content.
Is there a better way to have the DIV/UL respond to AJAX content correctly?
One other option could be to call LightSlider in the AJAX success, but this is very awkward since several AJAX calls are involved, plus I'd rather have the space allocated for the slider div as soon as possible to avoid jumping boxes as they get filled.
Thanks
The text was updated successfully, but these errors were encountered: