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

JFXPanel, WebView and Group: Layout doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx

      I try to use a JFXPanel which contains only one component: a WebView. From several manuals and blog posts I knew that I had to write something like this to add a WebView to an JFXPanel:

      scene = new Scene(webView);
      jfxPanel.setScene(new Group(scene));

      Running this results in a WebView which doesn't fit to its JFXPanel. The WebView has a fixed size. And there is no resizing of the WebView if you resize JFXPanel. You can see it in the attached screenshot.

      As soon as you omit the Group it works fine:

      scene = new Scene(webView);
      jfxPanel.setScene(scene);

      I don't know whether it's an JFXPanel issue or an WebView issue. And I'm not sure about the version naming, but I know that I tested this with the beta b30 release.

            malenkov Sergey Malenkov (Inactive)
            jweintraujfx Jens Weintraut (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: