run attached application twice:
with line 28: h.setAlignment(Pos.TOP_CENTER);
and with h.setAlignment(Pos.BASELINE_CENTER);
see screenshots:
- with TOP_CENTER, button's height is resized up to the height of hbox container.
- with BASELINE_CENTER, button's height is resized to some resonable default value.
expected: behavior should not depends on vertical alignment type
with line 28: h.setAlignment(Pos.TOP_CENTER);
and with h.setAlignment(Pos.BASELINE_CENTER);
see screenshots:
- with TOP_CENTER, button's height is resized up to the height of hbox container.
- with BASELINE_CENTER, button's height is resized to some resonable default value.
expected: behavior should not depends on vertical alignment type