mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(gioui): reduce the default height of popup menus so they fit
Closes #121.
This commit is contained in:
parent
65cfcb045c
commit
ca4a98eb50
@ -13,6 +13,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- 32-bit su_load_gmdls clobbered ebx, even though __stdcall demands it to be not
|
- 32-bit su_load_gmdls clobbered ebx, even though __stdcall demands it to be not
|
||||||
touched
|
touched
|
||||||
- Spaces are allowed in instrument names (#120)
|
- Spaces are allowed in instrument names (#120)
|
||||||
|
- Reduce the default height of popup menus so they fit on screen (fixes #121:
|
||||||
|
"The dropdown for targeting sends can make it impossible to choose certain
|
||||||
|
ops")
|
||||||
|
|
||||||
## v0.3.0
|
## v0.3.0
|
||||||
### Added
|
### Added
|
||||||
|
@ -177,7 +177,7 @@ func (tr *Tracker) layoutMenu(title string, clickable *widget.Clickable, menu *M
|
|||||||
dims := titleBtn.Layout(gtx)
|
dims := titleBtn.Layout(gtx)
|
||||||
op.Offset(image.Pt(0, dims.Size.Y)).Add(gtx.Ops)
|
op.Offset(image.Pt(0, dims.Size.Y)).Add(gtx.Ops)
|
||||||
gtx.Constraints.Max.X = gtx.Dp(width)
|
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...)
|
m.Layout(gtx, items...)
|
||||||
return dims
|
return dims
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user