Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+3
-3
@@ -27,9 +27,9 @@ type GridOptions struct {
|
||||
// Grid lays n cells in equal columns, lines between them.
|
||||
func Grid(c *ui.Context, n int, o GridOptions, cell func(i int)) *ui.Element {
|
||||
k := pixel.K(c)
|
||||
cols := orDef("Grid Columns", o.Columns, 2)
|
||||
pad := orDef("Grid Pad", o.Pad, 4)
|
||||
orDef("Grid n", n, 0)
|
||||
cols := pixel.Or("Grid Columns", o.Columns, 2)
|
||||
pad := pixel.Or("Grid Pad", o.Pad, 4)
|
||||
pixel.Or("Grid n", n, 0)
|
||||
if o.Lines > DottedLines {
|
||||
panic(fmt.Sprintf("layout: unknown grid lines %d", o.Lines))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user