Header layout
()
| 583 | // Header layout |
| 584 | |
| 585 | func (tb *Table) SizeFinal() { |
| 586 | tb.ListBase.SizeFinal() |
| 587 | lg := tb.ListGrid |
| 588 | sh := tb.SliceHeader() |
| 589 | sh.ForWidgetChildren(func(i int, cw core.Widget, cwb *core.WidgetBase) bool { |
| 590 | sgb := core.AsWidget(lg.Child(i)) |
| 591 | gsz := &sgb.Geom.Size |
| 592 | if gsz.Actual.Total.X == 0 { |
| 593 | return tree.Continue |
| 594 | } |
| 595 | ksz := &cwb.Geom.Size |
| 596 | ksz.Actual.Total.X = gsz.Actual.Total.X |
| 597 | ksz.Actual.Content.X = gsz.Actual.Content.X |
| 598 | ksz.Alloc.Total.X = gsz.Alloc.Total.X |
| 599 | ksz.Alloc.Content.X = gsz.Alloc.Content.X |
| 600 | return tree.Continue |
| 601 | }) |
| 602 | gsz := &lg.Geom.Size |
| 603 | ksz := &sh.Geom.Size |
| 604 | if gsz.Actual.Total.X > 0 { |
| 605 | ksz.Actual.Total.X = gsz.Actual.Total.X |
| 606 | ksz.Actual.Content.X = gsz.Actual.Content.X |
| 607 | ksz.Alloc.Total.X = gsz.Alloc.Total.X |
| 608 | ksz.Alloc.Content.X = gsz.Alloc.Content.X |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | // SelectedColumnStrings returns the string values of given column name. |
| 613 | func (tb *Table) SelectedColumnStrings(colName string) []string { |
nothing calls this directly
no test coverage detected