diff options
| -rw-r--r-- | table.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -200,6 +200,7 @@ func (me *TreeInfo) makeTable(t *guipb.Table) { return } me.Add(grid) + grid.State.ProgName = "TableGridPB" // log.Info("tree: makeTable() finished add win & grid") var h int = 0 var w int = 0 @@ -313,7 +314,10 @@ func (n *Node) InTable() bool { grid := FindWidgetById(int(n.ParentId)) if grid != nil { if grid.WidgetType == widget.Grid { - return true + if grid.State.ProgName == "TableGridPB" { + // this is a protobuf table + return true + } } } |
