It depends what layouts you are using and if you are using fixed widths.
Using flex in hbox/vbox will dynamically size based on the size given for the parent container. Using anchor in anchor layout can achieve the same thing as you can pass a percentage.