Skip to content

Commit 1ded13e

Browse files
committed
fixed resource control.
1 parent cf6a90c commit 1ded13e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/ss/editor/plugin/api/property/control/ResourcePropertyEditorControl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ protected void createComponents() {
6464
changeButton.setGraphic(new ImageView(Icons.ADD_16));
6565
changeButton.setOnAction(event -> processSelect());
6666

67-
resourceLabel.prefWidthProperty().bind(widthProperty().multiply(DEFAULT_FIELD_W_PERCENT));
68-
6967
final HBox container = new HBox(resourceLabel, changeButton);
68+
container.prefWidthProperty().bind(widthProperty().multiply(DEFAULT_FIELD_W_PERCENT));
69+
70+
resourceLabel.prefWidthProperty().bind(container.widthProperty());
7071

7172
FXUtils.addToPane(container, this);
7273

0 commit comments

Comments
 (0)