Header layout:
()
| 575 | // Header layout: |
| 576 | |
| 577 | func (tb *Table) SizeFinal() { |
| 578 | tb.ListBase.SizeFinal() |
| 579 | sg := tb.ListGrid |
| 580 | if sg == nil { |
| 581 | return |
| 582 | } |
| 583 | sh := tb.header |
| 584 | sh.ForWidgetChildren(func(i int, cw Widget, cwb *WidgetBase) bool { |
| 585 | sgb := AsWidget(sg.Child(i)) |
| 586 | gsz := &sgb.Geom.Size |
| 587 | ksz := &cwb.Geom.Size |
| 588 | ksz.Actual.Total.X = gsz.Actual.Total.X |
| 589 | ksz.Actual.Content.X = gsz.Actual.Content.X |
| 590 | ksz.Alloc.Total.X = gsz.Alloc.Total.X |
| 591 | ksz.Alloc.Content.X = gsz.Alloc.Content.X |
| 592 | return tree.Continue |
| 593 | }) |
| 594 | gsz := &sg.Geom.Size |
| 595 | ksz := &sh.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 | } |
nothing calls this directly
no test coverage detected