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

[WebView] controls not showing up initially on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 9
    • javafx
    • Linux Ubuntu 14.04, NVIDIA Quadro 410

      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.

        1. JDK8129800_Test.png
          11 kB
          Chien Yang
        2. basic-buttons.html
          2 kB
          Anton Tarasov

            smandalika Srinivas Mandalika
            ant Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: