在 HintPane 提示框中为图标和文本添加间距 (#4915)
This commit is contained in:
@@ -68,6 +68,7 @@ public class HintPane extends VBox {
|
|||||||
|
|
||||||
HBox hbox = new HBox(svg.createIcon(16), new Text(type.getDisplayName()));
|
HBox hbox = new HBox(svg.createIcon(16), new Text(type.getDisplayName()));
|
||||||
hbox.setAlignment(Pos.CENTER_LEFT);
|
hbox.setAlignment(Pos.CENTER_LEFT);
|
||||||
|
hbox.setSpacing(2);
|
||||||
flow.getChildren().setAll(label);
|
flow.getChildren().setAll(label);
|
||||||
getChildren().setAll(hbox, flow);
|
getChildren().setAll(hbox, flow);
|
||||||
label.textProperty().bind(text);
|
label.textProperty().bind(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user