ScrollPane.content moves with arrow keys

Eric Le Ponner eric.le.ponner at oracle.com
Tue Jun 10 16:30:23 UTC 2014


Curious indeed :)
And probably not intended you’re right.

Note that Scene Builder 2.0 embeds its own jdk.
So it means the problem can be reproduced with FX8 GA release.

Eric


Le 10 juin 2014 à 18:18, Werner Lehmann <lehmann at media-interactive.de> a écrit :

> Hi,
> 
> 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="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
>>   <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?
> 
> Werner



More information about the openjfx-dev mailing list