Hey everyone,

I am using Flexslider version 7.x-2.0-alpha1 for Drupal 7.22.

So I have a view (not a slideshow view, a flexslider view, so i'm in the right place right?) on my content type, where it pulls through my uploaded images on my content type passing the node ID as an argument. Pretty simple stuff.

I then load that view into my node with an embedded view.

Everything works great apart from resizing the slider upon flipping the orientation of the device. It doesn't resize, and I'm pretty sure that it is because I am changing the size of the gallery with css in my media queries.

So for example, in tablets and mobiles, the size of the gallery is 100% width. When the page loads, 3 slides (which I set as my min and max amount of slides in admin UI) are loaded, everything is sweet. Another slideshow I have where I am not changing the size, is fine. I am not changing the size directly to my flexsllider by the way, but to another parent wrapper.

Do I need to add something like the suggestions on this post: https://github.com/woothemes/FlexSlider/issues/391 by hooking into the API?

They mention a call on the 'after' callback. I have tried loading my flexslider object and manipulating 'after' but with no effect, how would I go about doing this? And is this the right solution or there another underlying issue?

Thanks again,
Craig

Comments

Widescreen_bob’s picture

This might not be the exact issue that you were having, but I just resolved an issue, where on orientation change it would appear that that the slides would either not render, or the defined sizes would be that of a different breakpoint.
I tried several techniques, including the ones that you mentioned without getting anywhere, and was close to adding a reload the page on orientation shift, which sucks.

I did note that in safari, not ios, desktop, I could reproduce the error, and prevent it by slowly resizing the browser. So I think that the issue, at least for me was that the flexslider style: -webkit-transition: all 1s ease was causing the issue. Once this was overridden by an ease of 0s the slider worked on orientation change.

amaria’s picture

Status: Active » Closed (outdated)