Closed vikjung closed 9 years ago
Interesting. I think this is a race condition on when the children of the iron-collapse
get stamped, and when it last recalculates the size. If you call updateSize('auto', false)
on the iron-collapse
element, you should see it be the correct size in Safari as well.
This should be an easy fix once https://github.com/Polymer/polymer/issues/1773 lands (by calling updateSize
any time the distributed children change). In the meantime, I think the workaround is to just call updateSize
manually on the iron-collapse
(for example on page load)
(moving this to iron-collapse https://github.com/PolymerElements/iron-collapse/issues/24, since that's where the real problem is)
Following shows both buttons in chrome but only one in Safari. If you remove the padding styling then it shows in safari as well. Not sure if its a safari issue or a polymer issue or just the way I have used things.