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

[ScrollBar] Right-click moves the knob.

    XMLWordPrintable

Details

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

    Description

      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);
          }

      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: