Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201364

[macosx] Component.getLocation() gives inconsistent coordinate for a component at (0,0)

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • OS:
      os_x

      Backports

        Description

        Component.getLocation() gives y coordinate (0,23) for a component at (0,0) on Mac.
        But once the component is relocated to (0,0) , then Component.getLocation() gives (0,0).

        Steps to reproduce:
        1.Run the attached RelocationTest.java
        2. Enter NewX & NewY to some value (Eg. 50,50) and click change location
        3. Enter NewX & NewY as (0,0) and click change location
        4. Click on Display Location : you will see (0,23)
        5. Again change to some other location and change back to (0,0)
        6. Click on Display Location : you will see (0,0)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  vagarwal Vikrant Agarwal
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: