refactor(tracker/gioui): upgrade gio & store Tracker to gtx.Values

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-25 18:54:00 +03:00
parent 08c36ed462
commit d78ef98e73
8 changed files with 49 additions and 39 deletions

View File

@ -48,7 +48,8 @@ func NewOrderEditor(m *tracker.Model) *OrderEditor {
}
}
func (oe *OrderEditor) Layout(gtx C, t *Tracker) D {
func (oe *OrderEditor) Layout(gtx C) D {
t := TrackerFromContext(gtx)
if oe.scrollTable.CursorMoved() {
cursor := t.TrackEditor.scrollTable.Table.Cursor()
t.TrackEditor.scrollTable.ColTitleList.CenterOn(cursor.X)