Fix #24: Meldungsbereich füllt verbleibenden vertikalen Platz
VBox.setVgrow(card, ALWAYS) auf dem Meldungs-Card macht die Sektion dehnbar innerhalb von sectionsBox. Damit das VGrow überhaupt wirken kann, wurde scrollPane.setFitToHeight(true) ergänzt – ohne diese Voraussetzung bleibt tabContent auf seine natürliche Höhe beschränkt und das VGrow läuft ins Leere. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+5
@@ -1233,6 +1233,9 @@ public final class GuiConfigurationEditorWorkspace {
|
|||||||
|
|
||||||
ScrollPane scrollPane = new ScrollPane(tabContent);
|
ScrollPane scrollPane = new ScrollPane(tabContent);
|
||||||
scrollPane.setFitToWidth(true);
|
scrollPane.setFitToWidth(true);
|
||||||
|
// FitToHeight sorgt dafür, dass tabContent den sichtbaren Viewport ausfüllt;
|
||||||
|
// nur so kann VBox.setVgrow auf einzelnen Sektionen (z.B. Meldungen) wirken.
|
||||||
|
scrollPane.setFitToHeight(true);
|
||||||
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
||||||
scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
|
scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
|
||||||
scrollPane.setPadding(new Insets(0));
|
scrollPane.setPadding(new Insets(0));
|
||||||
@@ -1997,6 +2000,8 @@ public final class GuiConfigurationEditorWorkspace {
|
|||||||
|
|
||||||
// Populate immediately so the area is not blank before the first validation run.
|
// Populate immediately so the area is not blank before the first validation run.
|
||||||
refreshMessagesArea();
|
refreshMessagesArea();
|
||||||
|
// Meldungsbereich füllt den verbleibenden vertikalen Platz in sectionsBox.
|
||||||
|
VBox.setVgrow(card, Priority.ALWAYS);
|
||||||
return card;
|
return card;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user