Skip to content

Commit

Permalink
Fix resizing issue and update readme (#8)
Browse files Browse the repository at this point in the history
* Resize nodes

* Update readme
  • Loading branch information
jperedadnr authored Oct 23, 2024
1 parent c43aa12 commit ec882e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ git clone https://github.com/gluonhq/EmbeddedSceneBuilderDemo.git
cd EmbeddedSceneBuilderDemo
mvn javafx:run
```

<img src="assets/embeddedSBDemo.png" width="600" alt="embeddedSBDemo"/>
Binary file added assets/embeddedSBDemo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private Node createCenter() {
Parent selectionBarPane = new SelectionBarController(editorController).getPanelRoot();
selectionBarPane.getStyleClass().add("selection-bar-container");
Node contentView = contentPanelController.getPanelRoot();
VBox.setVgrow(contentView, Priority.ALWAYS);
VBox contentBox = new VBox(selectionBarPane, contentView);
return contentBox;
}
Expand Down Expand Up @@ -294,6 +295,7 @@ private Node createRightSide() {
inspectorViewByPropertyType.setOnAction(e -> inspectorPanelController.setViewMode(InspectorPanelController.ViewMode.PROPERTY_TYPE));
inspectorSearchController.textProperty().subscribe((ov, nv) -> inspectorPanelController.setSearchPattern(nv));
Node inspectorView = inspectorPanelController.getPanelRoot();
VBox.setVgrow(inspectorView, Priority.ALWAYS);
VBox rightBox = new VBox(hBoxInspectorTop, inspectorView);
SplitPane.setResizableWithParent(rightBox, Boolean.FALSE);
return rightBox;
Expand Down

0 comments on commit ec882e9

Please sign in to comment.