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

Scrollbars from web pages are still overlapping content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: openjfx17
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: