response.js icon indicating copy to clipboard operation
response.js copied to clipboard

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

Open shukriadams opened this issue 11 years ago • 2 comments

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.

shukriadams avatar Aug 13 '14 08:08 shukriadams

@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?

ryanve avatar Aug 22 '14 19:08 ryanve

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.

shukriadams avatar Aug 27 '14 22:08 shukriadams