ScrollPane.content moves with arrow keys

Werner Lehmann lehmann at
Tue Jun 10 16:18:07 UTC 2014


we came across a curious behavior of ScrollPane in 8u5: the scrollpane 
content can be moved around with arrow keys if it is smaller than the 
viewport. This can be reproduced in SceneBuilder with simple FXML:

> <?xml version="1.0" encoding="UTF-8"?>
> <?import java.lang.*?>
> <?import javafx.scene.control.*?>
> <ScrollPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="517.0" prefWidth="272.0" xmlns="" xmlns:fx="">
>    <content>
>       <CheckBox mnemonicParsing="false" style="-fx-background-color: red;" text="CheckBox" />
>    </content>
> </ScrollPane>

Just a scrollpane with a checkbox in it. It looks like a bug to me but 
maybe I am missing something?


More information about the openjfx-dev mailing list