contentHeight.bind(control.contentMaxHeightProperty()); contentWidth = new SimpleDoubleProperty(this, "contentWidth", 0.0); DoubleBinding contentWidthBinding = control.contentMaxWidthProperty() .subtract(control.paddingLocalProperty().getValue().getLeft()) .subtract(control.paddingLocalProperty().getValue().getRight()) control.paddingLocalProperty().addListener((observable, oldValue, newValue) -> { double sideInsets = newValue.getLeft() + newValue.getRight(); contentWidth.set(control.contentMaxWidthProperty().subtract(sideInsets).doubleValue());