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

Scrollbars from web pages are still overlapping content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • jfx17
    • javafx
    • None
    • web
    • x86_64
    • generic

      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.

            arapte Ambarish Rapte
            shadzic Samir Hadzic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: