JDK-8273827 : Scrollbars from web pages are still overlapping content
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: openjfx17
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: x86_64
  • Submitted: 2021-09-15
  • Updated: 2021-09-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx18Unresolved
Related Reports
Relates :  
Description
Run this sample code:

"

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class LoadHtml extends Application {

    public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle(System.getProperty("java.runtime.version"));

        WebView browser = new WebView();
        WebEngine engine = browser.getEngine();

        engine.loadContent("<div style=\"text-align: right; height:80%\">test</div>\n"
                + "<div style=\"text-align: right; height:80%\">test</div>");

        StackPane sp = new StackPane();
        sp.getChildren().add(browser);

        Scene scene = new Scene(sp);

        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
"
Actual Result:
You will see that the scrollBars are still overlapping the content. 

Expect result:
Scrollbars should not overlap the content.


Comments
Isn't this a duplicate of JDK-8245918?
16-09-2021