fix(gioui): reduce the default height of popup menus so they fit

Closes #121.
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-02-17 19:01:56 +02:00
parent 65cfcb045c
commit ca4a98eb50
2 changed files with 4 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func (tr *Tracker) layoutMenu(title string, clickable *widget.Clickable, menu *M
dims := titleBtn.Layout(gtx)
op.Offset(image.Pt(0, dims.Size.Y)).Add(gtx.Ops)
gtx.Constraints.Max.X = gtx.Dp(width)
gtx.Constraints.Max.Y = gtx.Dp(unit.Dp(1000))
gtx.Constraints.Max.Y = gtx.Dp(unit.Dp(300))
m.Layout(gtx, items...)
return dims
}