X backend now understands flexible min widths
This commit is contained in:
@@ -99,6 +99,7 @@ func (layout Vertical) MinimumSize (
|
||||
width += theme.Padding() * 2
|
||||
height += theme.Padding() * 2
|
||||
}
|
||||
println(width, height)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -112,6 +113,7 @@ func (layout Vertical) MinimumHeightFor (
|
||||
) {
|
||||
if layout.Pad {
|
||||
width -= theme.Padding() * 2
|
||||
height += theme.Padding() * 2
|
||||
}
|
||||
|
||||
for index, entry := range entries {
|
||||
@@ -127,9 +129,5 @@ func (layout Vertical) MinimumHeightFor (
|
||||
height += theme.Padding()
|
||||
}
|
||||
}
|
||||
|
||||
if layout.Pad {
|
||||
height += theme.Padding() * 2
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user