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

WebView scrollbar does not scale with Windows DPI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u25
    • javafx
    • Microsoft Windows with DPI greater than 100% (96 DPI)

    • web

      Unlike other JavaFX controls, the scrollbars of a WebView are not enlarged when Windows is set to a DPI resolution greater than 100% (= 96 DPI).

      As a demonstration I uploaded two screenshots of a JavaFX application I'm working on, one at 96 DPI (100%) and one at 144 DPI (150%). The lower pane is a WebView, the upper a TableView. As you can see all scrollbars are the same width at 96 DPI, but the WebView's are not correctly enlarged at 144 DPI. This affects both horizontal and vertical scrollbar.

      http://kynosarges.org/images/dpi/WebView-96.png
      http://kynosarges.org/images/dpi/WebView-144.png

      Incidentally, I noticed the same issue in RSSOwl which is based on the Eclipse framework: at high Windows DPI, the HTML browser window has a narrower scrollbar than other scroll panes. Possibly WebView code was copied from there?

            Unassigned Unassigned
            cnahrjfx Christoph Nahr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: