From 51e4771b1751154f6905ac14f1f584f3408cf2ae Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:32:32 +0300 Subject: [PATCH] drafting --- tracker/params.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tracker/params.go b/tracker/params.go index cb5d337..4003ae1 100644 --- a/tracker/params.go +++ b/tracker/params.go @@ -173,7 +173,10 @@ func (pt *Params) Width() int { if pt.d.InstrIndex < 0 || pt.d.InstrIndex >= len(pt.derived.patch) { return 0 } - return pt.derived.patch[pt.d.InstrIndex].paramsWidth + // TODO: we hack the +1 so that we always have one extra cell to draw the + // comments. Refactor the gioui side so that we can specify the width and + // height regardless of the underlying table size + return pt.derived.patch[pt.d.InstrIndex].paramsWidth + 1 } func (pt *Params) RowWidth(y int) int { if pt.d.InstrIndex < 0 || pt.d.InstrIndex >= len(pt.derived.patch) || y < 0 || y >= len(pt.derived.patch[pt.d.InstrIndex].params) {