Skip to content

Commit ba51d58

Browse files
committed
Unfixed
1 parent 446ba77 commit ba51d58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layout/hboxgrow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (l *HBoxGrowLayout) Render() string {
7878
}
7979
}
8080

81-
availableWidth := layoutSize.Width - (l.gap*len(l.GetElements()) - 1)
81+
availableWidth := layoutSize.Width - l.gap*(len(l.GetElements())-1)
8282
elementSize.Width = int(math.Floor(float64(availableWidth / len(l.GetElements()))))
8383

8484
// calculate the compensation

0 commit comments

Comments
 (0)