This content has been marked as final. Show 4 replies
Did you ever figure this out?
I'm looking for the same solution, and though inelegant and almost certainly ugly to behold, repositioning the divider after a resize operation may be the only way.
You can try with getDividerPositions() and setDividerPosition() of SplitPane class and set the divider based on the stage width/height (stage.getWidth()).
Edited by: 963038 on Jan 29, 2013 9:10 PM
You can use the following code to fix your problem.
Suppose your Splitpane consists of leftArea(say a ScrollPane) and rightArea(any thing).
then to fix the divider position use this:
Perfect, this was precisely what I was looking for. Thank you!