Skip to content

Commit b252574

Browse files
committed
textflow height change
1 parent 1d5813d commit b252574

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fxsimulator/CanvasController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void initialize(URL url, ResourceBundle rb) {
157157
slider.valueProperty().addListener(this);
158158

159159
hiddenRoot.setPrefWidth(200);
160-
hiddenRoot.setPrefHeight(580);
160+
hiddenRoot.setPrefHeight(581);
161161
hiddenRoot.setCursor(Cursor.DEFAULT);
162162

163163
//Set Label "Detail"
@@ -170,7 +170,8 @@ public void initialize(URL url, ResourceBundle rb) {
170170
detailLabel.setLayoutX(35);
171171

172172
//Set TextFlow pane properties
173-
textFlow.setPrefSize(hiddenRoot.getPrefWidth(), hiddenRoot.getPrefHeight() - 10);
173+
textFlow.setPrefSize(hiddenRoot.getPrefWidth(), hiddenRoot.getPrefHeight() - 2);
174+
// textFlow.prefHeightProperty().bind(hiddenRoot.heightProperty());
174175
textFlow.setStyle("-fx-background-color: #dfe6e9;");
175176
textFlow.setLayoutY(39);
176177
textContainer.setLayoutY(textFlow.getLayoutY());

0 commit comments

Comments
 (0)