I have two StackPanes side-by-side in a SplitPane. Now, I'm trying to add a Rectangle to both of these StackPanes - which would fill the whole StackPane. So I tried this:
rect.widthProperty().bind(stack.widthProperty());
rect.heightProperty().bind(stack.heightProperty());
However, in my application, this causes the StackPanes to slowly resize all the time to infinity, for a reason that I can't quite grasp... I could not reproduce this in a simple test application.
I'm not sure how to fix or to get to the bottom of this, any ideas for a "workaround" or what could possibly cause this behavior?