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

[ListView] Right-click on the scroll bar scrolles the content.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 8
    • 8
    • javafx
    • jdk 1.8.0 - b62

    Description

      To reproduce right-click on the scroll bar between the knob and any arrow.
      See that the knob moves and content is scrolled.

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

      public class BugListViewRightClick extends Application {

          @Override
          public void start(Stage stage) {

              ListView<String> listView = new ListView<>();
              for (int i = 0; i < 10; i++) {
                  listView.getItems().add("Item - " + i);
              }
              listView.setMaxHeight(120d);
              listView.setPrefHeight(120d);
              
              HBox root = new HBox(20d);
              root.getChildren().add(listView);
              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: