listview - JavaFX - Scroll on parent node -


i creating contact list in javafx. contact groups titledpane of accordion , content of each titledpane listview. accordion wrapped in scollpane.

each time titledpane expanded, resize height of accordion listview displayed without scollbar (as shown in code below). scroll bar can appear on accordion.

groupaccordion.expandedpaneproperty().addlistener(new changelistener<titledpane>() {     @override public void changed(observablevalue<? extends titledpane> property, final titledpane oldpane, final titledpane newpane) {         if (newpane != null) {             groupaccordion.setminheight(listviewfullsize);             groupaccordion.setmaxheight(listviewfullsize);         }     } }); 

here fxml:

<scrollpane fx:id="scrollpane" prefheight="-1.0" prefwidth="-1.0"  xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2"  fx:controller="groupscontroller">   <content>     <accordion fx:id="groupaccordion" expandedpane="$null" minwidth="-1" prefheight="-1.0" prefwidth="-1.0" style="" />   </content>   <stylesheets>     <url value="@../resources/groups/groupsscreen.css" />   </stylesheets> </scrollpane> 

my problem when mouse cursor on listview (like on screenshot), scroll has not effect on accordion scoll bar (the scroll bar of scene). when cursor on accordion scroll works expected.

listview

i tried setting scroll listener of listview, isn't called there no scroll bar.

how can make scroll works on parent nodes ?

thank you


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -