<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27161</bug_id>
          <alias>zoom-js-positioning</alias>
          <creation_ts>2009-07-10 16:02:22 -0700</creation_ts>
          <short_desc>JS positioned elements get misplaced on zooming</short_desc>
          <delta_ts>2022-09-21 15:26:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://jqueryui.com/demos/datepicker/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Patrick">patcito</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dav.glass</cc>
    
    <cc>patcito</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>130997</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick">patcito</who>
    <bug_when>2009-07-10 16:02:22 -0700</bug_when>
    <thetext>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&apos;s the same problem:

http://jqueryui.com/demos/datepicker/

Put the focus the &quot;Date&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135621</commentid>
    <comment_count>1</comment_count>
    <who name="Dav Glass">dav.glass</who>
    <bug_when>2009-07-29 10:18:12 -0700</bug_when>
    <thetext>This seems to be an issue in getBoundingClientRect. It&apos;s returning page level non-zoomed box information even when zoomed.

Here is a small repro case:

http://blog.davglass.com/files/bugs/safari/bug-27161.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135635</commentid>
    <comment_count>2</comment_count>
    <who name="Dav Glass">dav.glass</who>
    <bug_when>2009-07-29 11:14:26 -0700</bug_when>
    <thetext>Just tested against: Version 4.0.2 (5530.19, r46507)

And it is fixed in that version..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135643</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick">patcito</who>
    <bug_when>2009-07-29 12:33:07 -0700</bug_when>
    <thetext>Hey Dav,

Did you test this too? http://jqueryui.com/demos/datepicker/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135649</commentid>
    <comment_count>4</comment_count>
    <who name="Dav Glass">dav.glass</who>
    <bug_when>2009-07-29 12:46:56 -0700</bug_when>
    <thetext>Patrick --

It looks to work for me with that nightly:

http://skitch.com/davglass/b3qq9/jquery-ui-colorpicker-zoomed-2

That is the color picker zoomed x 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>135651</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick">patcito</who>
    <bug_when>2009-07-29 12:49:32 -0700</bug_when>
    <thetext>Thanks for testing Dav!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900243</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-21 15:26:07 -0700</bug_when>
    <thetext>I took the test case from Comment 01 via Wayback Archive:

Link - https://web.archive.org/web/20100521062155/http://blog.davglass.com/files/bugs/safari/bug-27161.html

I am not able to reproduce this in Safari 16 and the numbers with and without zoom and marginal (due to pixel difference in clicking within red dot).

Further, Comment 02 confirms that it was fixed and also again in Comment 04 for original test case.

I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>