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

FXCanvas on Win32 HiDPI produces wrong results

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8u151, 9, 10
    • jfx11
    • javafx
    • windows_10

    Description

      Running the attached application produces the following problems:

      JDK8:
      - If swt.autoscale is on (top-right) the Font-Size is invalid
        and eg. context-menus pop up at the wrong location
      - If swt.autoscale is off (top-center) the JavaFX
        embedded scene as it should be and conext menus open at the right
        position

        But this is not an option as other SWT-Areas who use the GC the don't
        renderer appropriately

      JDK9:
      - If swt.autoscale is on sizes look ok but the embedded scene is blurred
        and eg context-menu is at wrong position and has the wrong font-size

      - If swt.autoscale is off (bottom-center) the scene is too small but
        context-menu is at the wrong location

      Maybe in a later step we should split up this ticket but I filed it as one for now so that one can see the different problems

      Attachments

        1. application.css
          0.1 kB
        2. FXCanvas.java
          60 kB
        3. JDK-8191661-JDK8.patch
          3 kB
        4. JDK-8191661-JDK8.patch
          3 kB
        5. JDK-8191661-JDK8.patch
          2 kB
        6. JDK-8191661-JDK9.patch
          3 kB
        7. Main.java
          1 kB
        8. MainSWT.java
          1 kB
        9. MainSWT.java
          1.0 kB
        10. screen_fxcanvas.png
          screen_fxcanvas.png
          801 kB

        Activity

          People

            tschindl Tom Schindl
            tschindl Tom Schindl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: