@@ -121,14 +121,19 @@ public abstract class AbstractInstallersPage extends Control implements WizardPa
|
|||||||
InstallerItem[] libraries = control.group.getLibraries();
|
InstallerItem[] libraries = control.group.getLibraries();
|
||||||
|
|
||||||
FlowPane libraryPane = new FlowPane(libraries);
|
FlowPane libraryPane = new FlowPane(libraries);
|
||||||
libraryPane.setVgap(8);
|
libraryPane.setVgap(16);
|
||||||
libraryPane.setHgap(16);
|
libraryPane.setHgap(16);
|
||||||
|
|
||||||
ScrollPane scrollPane = new ScrollPane(libraryPane);
|
if (libraries.length <= 8) {
|
||||||
scrollPane.setFitToWidth(true);
|
BorderPane.setMargin(libraryPane, new Insets(16, 0, 16, 0));
|
||||||
scrollPane.setFitToHeight(true);
|
root.setCenter(libraryPane);
|
||||||
BorderPane.setMargin(scrollPane, new Insets(16, 0, 16, 0));
|
} else {
|
||||||
root.setCenter(scrollPane);
|
ScrollPane scrollPane = new ScrollPane(libraryPane);
|
||||||
|
scrollPane.setFitToWidth(true);
|
||||||
|
scrollPane.setFitToHeight(true);
|
||||||
|
BorderPane.setMargin(scrollPane, new Insets(16, 0, 16, 0));
|
||||||
|
root.setCenter(scrollPane);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user