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

WebView vertical scroll bar is not rendered properly when "Go back" happens

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0.2
    • javafx
    • None
    • Win7 JDK6x32bit 2.0.2 b07

    • web

      Vertical scroll bar of a WebView produces graphical artifacts when "Go back" in the context menu is activated.

      To reproduce, use the application below and comply the following steps:
      1. Start application (it will load google.com by default).
      2. Search for "pony".
      3. Invoke context menu and press "Go back". You should see graphical artifacts left from the scroll bar to the right of WebView client area.

      The application code:
      import javafx.application.Application;

      import javafx.scene.Scene;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class Main extends Application {

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              System.setProperty("proxyHost", "emeacache.uk.oracle.com");
              System.setProperty("proxyPort", "80");
              Application.launch(Main.class, new String[0]);
          }

          @Override
          public void start(Stage stage) throws Exception {
              
              WebView wv = new WebView();
              WebEngine e = wv.getEngine();
              stage.setScene(new Scene(wv));
              e.load("http://google.com");
              stage.show();
              
          }
      }

      The screenshots will be attached.

        1. back.png
          back.png
          128 kB
        2. initial.png
          initial.png
          133 kB
        3. pony.png
          pony.png
          98 kB

            malenkov Sergey Malenkov (Inactive)
            ilatyshe Irina Grineva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: