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

[ScrollBar] Right-click moves the knob.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • jdk 1.8.0 - b62

      To reproduce:

      1. Right-click on the scroll bar at empty space between knob and arrow.
      2. See that knob moves.

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ScrollBar;
      import javafx.scene.layout.HBox;
      import javafx.stage.Stage;

      public class BugScrollBar extends Application {

          @Override
          public void start(Stage stage) {

              HBox root = new HBox(20d);
              
              ScrollBar scrollBar = new ScrollBar();
              root.getChildren().add(scrollBar);
              
              Scene scene = new Scene(root, 300, 250);

              stage.setScene(scene);
              stage.setTitle(System.getProperty("java.runtime.version") + "; " + System.getProperty("javafx.runtime.version"));
              stage.show();
          }

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

      }

            miflemi Mick Fleming
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: