Stripes :)))))

This commit is contained in:
2023-01-21 21:24:02 -05:00
parent 5990496455
commit 90067a6ded
2 changed files with 18 additions and 4 deletions

View File

@@ -274,7 +274,7 @@ func (element *ScrollContainer) recalculate () {
horizontal := &element.horizontal
vertical := &element.vertical
bounds := element.Bounds()
thickness := theme.Padding() * 2
thickness := theme.ScrollBarWidth()
// calculate child size
element.childWidth = bounds.Dx()
@@ -401,8 +401,8 @@ func (element *ScrollContainer) dragVerticalBar (mousePosition image.Point) {
}
func (element *ScrollContainer) updateMinimumSize () {
width := theme.Padding() * 2
height := theme.Padding() * 2
width := theme.ScrollBarWidth()
height := theme.ScrollBarWidth()
if element.child != nil {
childWidth, childHeight := element.child.MinimumSize()
width += childWidth