Stack through StickyHeader, with behavior tests and gallery demos. kit gains Arrive, Settle (paint-time layout check) and Shade. Several actions return named ui.Element results; mygo vet forbids elements in structs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
9 lines
261 B
Go
9 lines
261 B
Go
package layout
|
|
|
|
import "github.com/egoist/mygo/ui"
|
|
|
|
// SplitStack holds two panes stacked; *size is the first's height.
|
|
func SplitStack(c *ui.Context, size *float32, first, second func()) ui.Element {
|
|
return split(c, "SplitStack", true, size, first, second)
|
|
}
|