SetAlignH sets the horizontal alignment of the whole group of items inside the parent panel and updates the layout. This only has any effect if there are no expanded items.
(align Align)
| 61 | // inside the parent panel and updates the layout. |
| 62 | // This only has any effect if there are no expanded items. |
| 63 | func (bl *HBoxLayout) SetAlignH(align Align) { |
| 64 | |
| 65 | bl.alignH = align |
| 66 | bl.Recalc(bl.pan) |
| 67 | } |
| 68 | |
| 69 | // SetAutoHeight sets if the panel minimum height should be the height of |
| 70 | // the largest of its children's height. |