Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

PIE Position After Window Resize #15

Closed
gordonbrander opened this issue Jun 2, 2010 · 1 comment
Closed

PIE Position After Window Resize #15

gordonbrander opened this issue Jun 2, 2010 · 1 comment

Comments

@gordonbrander
Copy link

Using latest alpha release of PIE.

Situation

Block-level PIE element inside of a centered element with constrained width (e.g. margin: 0 auto; width: 700px;). Window is resized.

Problem

PIE elements do not update position after window resize.

Test: http://gordonbrander.com/lab/pie/window-resize/

@lojjic
Copy link
Owner

lojjic commented Jun 3, 2010

Change the way we detect whether an element has changed position/size to use getBoundingClientRect rather than offsetLeft/Top/etc. -- this prevents situations where the element's position relative to its positioning container actually changes but its offsetLeft/Top stay the same. Closed by daefc05.

gucong3000 pushed a commit to gucong3000/PIE that referenced this issue Apr 22, 2016
… to use getBoundingClientRect rather than offsetLeft/Top/etc. -- this prevents situations where the element's position relative to its positioning container actually changes but its offsetLeft/Top stay the same. Closes lojjic#15.
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants