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

[WebView] controls not showing up initially on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      Linux Ubuntu 14.04, NVIDIA Quadro 410

      Description

      Run the following test on Linux:

      ===========================================================================
      import javafx.application.*;
      import javafx.scene.*;
      import javafx.scene.control.*;
      import javafx.stage.*;
      import javafx.scene.web.*;

      public class Test extends Application
      {
        @Override
        public void start(Stage primaryStage)
        {
          WebView wv = new WebView();
          wv.getEngine().loadContent(createHtml());
          primaryStage.setScene(new Scene(wv, 640, 480));
          primaryStage.show();
        }

        private static String createHtml()
        {
          return "<html><body><p>1<input type=checkbox><input type=checkbox><input type=checkbox><br/>2<input type=checkbox><input type=checkbox><input type=checkbox><br/>3<input type=checkbox><input type=checkbox><input type=checkbox><br/>4<input type=checkbox><input type=checkbox><input type=checkbox><br/>5<input type=checkbox><input type=checkbox><input type=checkbox><br/>6<input type=checkbox><input type=checkbox><input type=checkbox><br/>7<input type=checkbox><input type=checkbox><input type=checkbox><br/>8<input type=checkbox><input type=checkbox><input type=checkbox><br/>9<input type=checkbox><input type=checkbox><input type=checkbox><br/>10<input type=checkbox><input type=checkbox><input type=checkbox><br/>";
        }
      }
      ==========================================================================

      Sometimes, the controls don't appear when the stage is shown.

      When I resize the stage or just hover mouse over the controls, they become visible.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              smandalika Srinivas Mandalika
              Reporter:
              ant Anton Tarasov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: