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

WebView in scenter slot of BorderPane has visual deffects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Windows 7 64-bit SP1

      java version "1.6.0_25"
      Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
      Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)

      JavaFX 2.0 Beta SDK (build 30)

    • Subcomponent:
      web

      Description

      With following example I have got a very bad visual experience with combination of WebView and BorderPane. Please see attached screen shot. It looks like Left and Top slots obscure opposite part of WebView.

      Here is a source code of the example:

      package browserissue;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.scene.layout.BorderPane;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class BrowserIssue extends Application {

          public static void main(String[] args) {
              Application.launch(BrowserIssue.class, args);
          }
          
          @Override
          public void start(Stage primaryStage) {
              primaryStage.setTitle("Hello World");
              BorderPane root = new BorderPane();
              Scene scene = new Scene(root);
              
              root.setTop(new Label("Top"));
              root.setLeft(new Label("This is Left slot..."));
              
              root.setCenter(new WebView(new WebEngine("http://javafx.com")));
              
              primaryStage.setScene(scene);
              primaryStage.setVisible(true);
          }
      }

        Attachments

          Activity

            People

            Assignee:
            malenkov Sergey Malenkov (Inactive)
            Reporter:
            iyalovyyjfx Illya Yalovyy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: