Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Pre-size the slider element to the height of the tallest slide, in a responsive way #599

Open
dandv opened this Issue · 1 comment

2 participants

Dan Dascalescu Jess Dale
Dan Dascalescu

Problem: by default, even with the "slide" animation, the height of the .flexslider control will be zero while the slide images load. If there is content below the slider, it will jump down when the image slides load. This is easily noticeable on slow connections.

Demo: http://archive.is/zhmjI

A workaround is to set a static height for the .flexslider or its ul, but that is not a responsive solution.

Issue #174 proposes a solution but I found it to be unreliable between loading the page in a new tab, and doing a refresh on it. I have it running at www.blueseed.co at the moment, and the height of the slider is first computed as 0 when simply loading the page in a new tab. This causes the content jump undesirable effect.

Would be really great to have this fixed.

Jess Dale

@dandv been trying to think of a fix for this as well. what about setting a min-height on the before call back and then removing it on the start call back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.