public int getPreferredWidth(int height) {
FillPane fillPane = (FillPane)getComponent();
int preferredWidth = 0;
Orientation orientation = fillPane.getOrientation();
if (orientation == Orientation.HORIZONTAL) {
int heightUpdated = height;
// Include padding in constraint
if (heightUpdated != -1) {
heightUpdated = Math.max(heightUpdated - (padding.top + padding.bottom), 0);