Skip to content

Commit f73d198

Browse files
committed
debug: set the minimum size of a widget
1 parent 9069b05 commit f73d198

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (l *layout) sizeInPixels(sizes []int, index int, defaultSize int, entireSiz
4646
denom += -s
4747
}
4848
}
49-
return int(float64(remain) * -float64(s) / float64(denom))
49+
return max(8, int(float64(remain)*-float64(s)/float64(denom)))
5050
}
5151

5252
func (c *Context) pushLayout(body image.Rectangle, scroll image.Point) {

0 commit comments

Comments
 (0)