Bug 27161 - (zoom-js-positioning) JS positioned elements get misplaced on zooming
: JS positioned elements get misplaced on zooming
: WebKit
Layout and Rendering
: 528+ (Nightly build)
: All Mac OS X 10.5
: P2 Normal
Assigned To:
: http://jqueryui.com/demos/datepicker/
  Show dependency treegraph
Reported: 2009-07-10 16:02 PST by
Modified: 2009-07-29 12:49 PST (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2009-07-10 16:02:22 PST
Some dropdown menus that use JS for positioning get wrongly positioned on zooming in or out, it only shows the menu at the right position when no zooming is done. Otherwise it might appear down the page instead of where it should be. I found an example online, not exactly a menu but it's the same problem:


Put the focus the "Date" text input, the datepicker should appear. Zoom in and it gets out of place.

I can reproduce this with Webkit Nightly, Chrome and QtWebkit on all platforms.
------- Comment #1 From 2009-07-29 10:18:12 PST -------
This seems to be an issue in getBoundingClientRect. It's returning page level non-zoomed box information even when zoomed.

Here is a small repro case:

------- Comment #2 From 2009-07-29 11:14:26 PST -------
Just tested against: Version 4.0.2 (5530.19, r46507)

And it is fixed in that version..
------- Comment #3 From 2009-07-29 12:33:07 PST -------
Hey Dav,

Did you test this too? http://jqueryui.com/demos/datepicker/
------- Comment #4 From 2009-07-29 12:46:56 PST -------
Patrick --

It looks to work for me with that nightly:


That is the color picker zoomed x 2
------- Comment #5 From 2009-07-29 12:49:32 PST -------
Thanks for testing Dav!