alt: alignment

This commit is contained in:
huanghongxun
2020-04-23 11:26:40 +08:00
parent d574d8d78b
commit 886ebe6885

View File

@@ -249,7 +249,8 @@ public class DecoratorSkin extends SkinBase<Decorator> {
} }
if (titleNode != null) { if (titleNode != null) {
titleLabel.prefWidthProperty().bind(Bindings.createDoubleBinding(() -> { titleLabel.prefWidthProperty().bind(Bindings.createDoubleBinding(() -> {
return leftPaneWidth - 20 - backNavButton.getWidth() - closeNavButton.getWidth(); // 18 = 10 (horizontal padding of navLeft) + 8 (margin-left)
return leftPaneWidth - 18 - backNavButton.getWidth() - closeNavButton.getWidth();
}, backNavButton.widthProperty(), closeNavButton.widthProperty())); }, backNavButton.widthProperty(), closeNavButton.widthProperty()));
} }
titleLabel.setText(title); titleLabel.setText(title);