eros: InfoPane: fix action buttons not even on left/right

This commit is contained in:
Bixilon 2022-11-07 19:08:14 +01:00
parent d6060e8b99
commit 01108b60ee
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -72,7 +72,7 @@ class InfoPane<T>(vararg children: Node) : AnchorPane(*children) {
}
GridPane().let {
for (index in 0 until actions.size / 2) {
for (index in 0 until (actions.size - 1) / 2) {
it.columnConstraints += ColumnConstraints()
}
it.columnConstraints += ColumnConstraints(0.0, -1.0, Double.POSITIVE_INFINITY, Priority.ALWAYS, HPos.LEFT, true)