JDK-8164186 : WebView renders vertical scrollbar even when content completely fits
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-08-17
  • Updated: 2018-05-28
  • Resolved: 2018-05-25
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
WebView always renders a vertical scrollbar even in the case where there is no need for one. The horizontal scrollbar is correctly drawn only when needed.

To reproduce:

1. Load http://google.com in HelloWebView

2. BUG: there is a vertical scroll bar but it doesn't do anything.

3. Resize the window to be smaller vertically until the content no longer fits

4. An active scrollbar will be rendered.

5. Resize the window larger vertically until the content fits in the window

6. BUG: The scrollbar remains

Comments
Could reproduce with simple test : http://www.w3schools.com/cssref/tryit.asp?filename=trycss_overflow
27-12-2016

This is not a regression, since it has worked that way since JDK 8.
17-08-2016