I am building simple GUI where the root element
is having two children:
property for all children components to
still seems to grow horizontally when I only add any component to it and set this component's anchor to the value beyond
As you can see in above screenshot -
in a bottom-right corner has left anchor set to
which leads to increase in
I would rather have this
cut or placed beyond visible space.
Why is that? Can I somehow force
to keep its maximal bounds? Is there any workaround for this issue?
You can find related java(fx) code here