mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-20 22:14:35 -04:00
drafting
This commit is contained in:
parent
78eaf600f4
commit
51e4771b17
@ -173,7 +173,10 @@ func (pt *Params) Width() int {
|
|||||||
if pt.d.InstrIndex < 0 || pt.d.InstrIndex >= len(pt.derived.patch) {
|
if pt.d.InstrIndex < 0 || pt.d.InstrIndex >= len(pt.derived.patch) {
|
||||||
return 0
|
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 {
|
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) {
|
if pt.d.InstrIndex < 0 || pt.d.InstrIndex >= len(pt.derived.patch) || y < 0 || y >= len(pt.derived.patch[pt.d.InstrIndex].params) {
|
||||||
|
Reference in New Issue
Block a user