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

[hidpi] Unity: setLocation / getLocation for Window does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • linux_ubuntu

      Configuration: Ubuntu 15.04 Linux + Unity + HiDPI (scaling factor = 2) + JDK9 b93

      Please run the attached test.

      Expected behavior (GNOME): see the attached screenshot LocationOK.png (please note that the left-top coordinates obtained with getLocation are correct).

      Unity: erroneous behavior (see LocationNOK.png). Please note that the console output obtained with getLocation changes from run to run. Does not depend on Dialog's parent (null dialog, null frame, etc.)

        1. LocationNOK.png
          LocationNOK.png
          204 kB
        2. LocationOK.png
          LocationOK.png
          151 kB
        3. scale-1-nok.png
          scale-1-nok.png
          518 kB
        4. scale-1-nok.png
          scale-1-nok.png
          426 kB
        5. Test.java
          3 kB
        6. TestNOK.png
          TestNOK.png
          213 kB
        7. TestOK.png
          TestOK.png
          184 kB

            ssadetsky Semyon Sadetsky (Inactive)
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: