Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iDangerous swiper + Response + offscreen content ; layout not updated. #53

Open
shukriadams opened this issue Aug 13, 2014 · 2 comments

Comments

@shukriadams
Copy link

I'm using Response to load images inside an iDangerous.swiper carousel. The images that are visible when the page loads are properly displayed based on screen size, but when scrolling to off-screen content, these images' src are always the initial value - they do not get updated to adapt to screen size. Manually resizing the window "fixes" this.

Is there a way to force Response to update or redraw from code? I could put this in iDangerous.swiper's onscroll callback as a workaround. Thanks.

@ryanve
Copy link
Owner

ryanve commented Aug 22, 2014

@shukriadams I don't think so. I didn't consider that sort of need when I first wrote the plugin but yea I can see the need for it. Did you find a solution?

@shukriadams
Copy link
Author

Hi. No, still haven't found a solution. Thanks for the answer - I guess I'll have to look into writing my own redraw hack, or finding another combination of media handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants