diff options
| author | Jeff Carr <[email protected]> | 2025-09-16 17:35:23 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-16 17:35:23 -0500 | 
| commit | 864039adb4fc25a2ee26e5b9acf160162ad540ab (patch) | |
| tree | 7034eac944fa51d6c54148223127de24fa4432d0 | |
| parent | 61ccdc69bb1caa2ea869647d72ad576e951d2c70 (diff) | |
handle AnyCols()v0.25.3
| -rw-r--r-- | table.go | 22 | 
1 files changed, 21 insertions, 1 deletions
@@ -149,7 +149,7 @@ func (parent *Node) numberTableGrid(pb *guipb.Table) {  		if parent.numberTableCol(pb, name, w) {  			// log.Info("tree:row() COLUMN GOOD", t.Title, name, w, h)  		} else { -			log.Info("tree:row() COLOMN FAIL", pb.Title, name, w, h) +			log.Info("tree:row() COLUMN FAIL", pb.Title, name, w, h)  		}  		w += 1 @@ -238,6 +238,26 @@ func (parent *Node) numberTableCol(pb *guipb.Table, name string, w int) bool {  		return true  	} +	for _, r := range pb.AnyCols { +		if name != r.Header.Name { +			// log.Info("skip string row:", r.Header.Name, "!=", name) +			continue +		} +		// log.Info("tree: Add()ing to grid here", r.Header.Id, r.Header.Name, w, h) +		r.Header.Location = new(guipb.Location) +		r.Header.Location.X = int64(w) +		r.Header.Location.Y = int64(h) +		h += 1 +		for _, v := range r.Widgets { +			// log.Info("tree: Add()ing to grid here", v.Id, v.Name, w, h) +			v.Location = new(guipb.Location) +			v.Location.X = int64(w) +			v.Location.Y = int64(h) +			h += 1 +		} +		return true +	} +  	return false  }  | 
