I'm building a JavaFX application. While playing with CSS I couldn't find an equivalent to box-sizing property like in ordinary CSS; the point is that I don't want the border to take space from outside of the shape I want it to be included in it's total width.
I used background insets and it worked as expected but its a bit tedious when changing the width of a border dynamically (the insets of the inner background in this case). Is there a way to avoid that?
- I'm using JavaFX 11.0.1