0

I am using a SplitPane control to divide all available space between two text areas allowing users to adjust split position according to their needs.

- SplitPane
  - AnchorPane
    - TextArea [1]
  - AnchorPane
    - TextArea [2]

Unfortunatelly textareas only take constant amount space (as was defined in SceneBuilder) and refuse to shrink to fill whole area of SplitPane's AnchorPane:

enter image description here

How to get it fixed up?

Denis Kulagin
  • 8,472
  • 17
  • 60
  • 129
  • 3
    Why wrap them in `AnchorPane`s instead of making the `TextArea`s the items of the `SplitPane`? If you want to keep it this way: Have you set the anchors for the `TextArea`s? (posting the fxml would help allow us to see for ourselfes btw) – fabian Mar 04 '18 at 11:40
  • @fabian Yep, you are right! Removing AnchorPane(s) from hierarchy did the trick. – Denis Kulagin Mar 04 '18 at 11:45

1 Answers1

0

I'd suggeset to put the AnchorPanes in a GridPane so you can set percentages for the vertical metrics for example (don't remember if this also works with split pane),

and then bind the properties

gkhaos
  • 694
  • 9
  • 20