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

JFXPanel, WebView and Group: Layout doesn't work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: