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

FXCanvas on Win32 HiDPI produces wrong results

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u151, 9, 10
    • Fix Version/s: openjfx11
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • OS:
      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
          Tom Schindl
        2. FXCanvas.java
          60 kB
          Tom Schindl
        3. JDK-8191661-JDK8.patch
          3 kB
          Tom Schindl
        4. JDK-8191661-JDK8.patch
          3 kB
          Tom Schindl
        5. JDK-8191661-JDK8.patch
          2 kB
          Tom Schindl
        6. JDK-8191661-JDK9.patch
          3 kB
          Tom Schindl
        7. Main.java
          1 kB
          Tom Schindl
        8. MainSWT.java
          1 kB
          Tom Schindl
        9. MainSWT.java
          1.0 kB
          Tom Schindl
        10. screen_fxcanvas.png
          801 kB
          Tom Schindl

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: