Position uses the final sizes to set relative positions within layouts according to alignment settings.
()
| 1589 | // Position uses the final sizes to set relative positions within layouts |
| 1590 | // according to alignment settings. |
| 1591 | func (wb *WidgetBase) Position() { |
| 1592 | wb.positionParts() |
| 1593 | } |
| 1594 | |
| 1595 | func (wb *WidgetBase) positionWithinAllocMainX(pos math32.Vector2, parJustify, parAlign styles.Aligns) { |
| 1596 | sz := &wb.Geom.Size |
nothing calls this directly
no test coverage detected