Skip to content

Loading…

The `offsetParent` is wrong in the `attached` callback #2193

Closed
notwaldorf opened this Issue · 2 comments

3 participants

@notwaldorf
Owner

on Chrome 43.0.2357.134 (Official Build) (64-bit), this code doesn't have an offsetParent. It works on FF and Safari:

https://gist.github.com/notwaldorf/44da856a3debdc8ab289

@sorvell sorvell was assigned by notwaldorf
@sorvell
Owner

This looks like a Chrome bug to me. I've filed:

https://code.google.com/p/chromium/issues/detail?id=516550

@sorvell sorvell added p1 and removed p2 pending-response labels
@sorvell
Owner

After discussing this with some Blink engineers, it looks like fixing the bug will take a non-trivial amount of time. In the meantime, Polymer can use a slightly beefed up version of Polymer.ImportStatus.whenLoaded(cb) to defer calling attached slightly to avoid querying style/layout data too soon.

@sorvell sorvell closed this issue from a commit
@sorvell sorvell Fixes #2193: Implements workaround for https://code.google.com/p/chro…
…mium/issues/detail?id=516550 by adding Polymer.RenderStatus.whenReady and using it to defer `attached`
2bffc4c
@sorvell sorvell closed this in 2bffc4c
@blasten blasten referenced this issue in PolymerElements/iron-list
Closed

_updateMetrics called prematurely, causes Exception: #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.