Make sure you're making the element block level `:host {display: block}`.
This works for me: http://jsbin.com/qusopuzuze/edit?html,outputOn Thu, Jun 16, 2016 at 6:05 PM Steven Bennetts <[email protected]> wrote: > I have a polymer element that needs to layout some children based on its > size. > > If I attempt to do this in attached(), the offsetWidth/Height of the > element is 0 (the page still has not been rendered). > > Is there any way for the element to be notified when offsetWidth/Height is > guaranteed to be valid? > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/CADko7PHt5m%2BJ509bpy3hdit%2BLeX2c58cf-ibciW%3DHptg9j8jKA%40mail.gmail.com > <https://groups.google.com/d/msgid/polymer-dev/CADko7PHt5m%2BJ509bpy3hdit%2BLeX2c58cf-ibciW%3DHptg9j8jKA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CACGqRCBU5LJkOgH7E%3DXvNhqdUNpD4NdfsL_bgXucmu%3DDPWoeTw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
