Details
-
Bug
-
Resolution: Duplicate
-
P4
-
8
-
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);
}
}
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
- duplicates
-
JDK-8116238 [ScrollBar] Right-click moves the knob.
- Resolved