0

I have a GridPane in a SplitPane.

I don't want to resize GridPane when I slide,

but I want to be able to hide it.

If GridPane has fixed size, slider doesn't move. Also, setting Resizable With Parent false didn't help.

How can I achieve this? Thank you.

ilmentore
  • 3
  • 2
  • I am going to guess that you should set the `GridPane`'s `minWidth` to the current side of the `GridePane`. – SedJ601 Nov 09 '17 at 14:55

1 Answers1

1

You could put you your gridpane inside a scrollPane then when it resizes it should only affect the scroll pane

Matt
  • 3,052
  • 1
  • 17
  • 30
  • ScrollPane partially solved the problem. It didn't hide completely because of the scroll bar. So, I tried several other panes. Using FlowPane and setting minHeight="0.0" minWidth="0.0" worked. – ilmentore Nov 09 '17 at 20:07