ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

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

Open shukriadams opened 9 years ago

shukriadams commented 9 years ago

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 commented 9 years ago

@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 commented 9 years ago

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.