feat(tracker): layout patterns in the top left

This commit is contained in:
vsariola
2021-01-06 14:24:56 +02:00
parent 34eecd59f5
commit 2b38297da2
2 changed files with 9 additions and 11 deletions

View File

@ -26,7 +26,6 @@ func (t *Tracker) layoutPatterns(tracks []sointu.Track, activeTrack, cursorPatte
paint.FillShape(gtx.Ops, panelColor, clip.Rect{Max: image.Pt(gtx.Constraints.Max.X, trackRowHeight)}.Op())
for i, track := range tracks {
pop := op.Push(gtx.Ops)
gtx.Constraints.Max.X = patternCellWidth
clip.Rect{Max: gtx.Constraints.Max}.Add(gtx.Ops)
if activeTrack == i {
paint.FillShape(gtx.Ops, activeTrackColor, clip.Rect{