We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446ba77 commit ba51d58Copy full SHA for ba51d58
1 file changed
layout/hboxgrow.go
@@ -78,7 +78,7 @@ func (l *HBoxGrowLayout) Render() string {
78
}
79
80
81
- availableWidth := layoutSize.Width - (l.gap*len(l.GetElements()) - 1)
+ availableWidth := layoutSize.Width - l.gap*(len(l.GetElements())-1)
82
elementSize.Width = int(math.Floor(float64(availableWidth / len(l.GetElements()))))
83
84
// calculate the compensation
0 commit comments