Redbility/paper-carousel

Incorrect sizing when paper-carousel inside iron-pages

Closed this issue · 4 comments

paper-carousel is incorrectly sized when placed inside an iron-pages element. It seems that _setContainerSize() calculates min-width to be 0px during page load. Resizing the page or changing pages results in correct sizing.
See https://nathanandjorja.ca/gallery for an example.

Hi @nloewen,

We let's review it, in the meantime you can use refresh() method after page load for recalculate sizing.

Calling refresh() in the attached callback doesn't change the behaviour. I've worked around this by calling refresh() in the onload callback for the img elements inside the carousel.

Hi @nloewen ,
We just update the component. Could you try again?
If you keep having the same problem, write us again.
Thank you

It's fixed. Thanks!