Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobbyshop committed Apr 27, 2024
1 parent af79331 commit 92338a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/neptuneclient/voidui/widgets/Column.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Column(private val children: Array<Widget>, private val gap: Float = 0f) :
var h = gap * (children.size - 1)
children.forEach {
it.layout(constraints)
w = max(h, it.size.width)
w = max(w, it.size.width)
h += it.size.height
}
size = constraints.constrain(Size(w, h))
Expand Down

0 comments on commit 92338a6

Please sign in to comment.