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

Unwanted wobble effect in left pane on SplitPane when moving divider

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      There is a small random horizontal shift of contents of left pane when moving divider on SplitPane in JavaFX 11 onwards. This problem does not appear in JavaFX 8.

      REGRESSION : Last worked in version 8u201

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run supplied program and move divider bar continuously.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Text should be static and not move in left panel
      ACTUAL -
      Text in left panel shift left and right by one or two pixels randomly

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.SplitPane;
      import javafx.scene.control.TextArea;
      import javafx.stage.Stage;

      public class DemoBug extends Application
      {

          public static void main(String[] args)
          {
              launch(args);
          }

          public void start(Stage primaryStage) {

              TextArea textArea = new TextArea("I am Wobbly\nwhen you move the\n divider\nthis TextArea can be any component\nfor the problem to happen");

              SplitPane s = new SplitPane(textArea, new TextArea("def"));

              primaryStage.setScene(new Scene(s,300,300));
              primaryStage.show();

          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      no workaround

      FREQUENCY : always


            aghaisas Ajit Ghaisas
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: