mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
example/gophers: correct baseline to be bottom-aligned
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -322,7 +322,7 @@ func (f fill) Layout(gtx *layout.Context) {
|
|||||||
}
|
}
|
||||||
paint.ColorOp{Color: f.col}.Add(gtx.Ops)
|
paint.ColorOp{Color: f.col}.Add(gtx.Ops)
|
||||||
paint.PaintOp{Rect: dr}.Add(gtx.Ops)
|
paint.PaintOp{Rect: dr}.Add(gtx.Ops)
|
||||||
gtx.Dimensions = layout.Dimensions{Size: d, Baseline: d.Y}
|
gtx.Dimensions = layout.Dimensions{Size: d}
|
||||||
}
|
}
|
||||||
|
|
||||||
func column() layout.Flex {
|
func column() layout.Flex {
|
||||||
|
|||||||
Reference in New Issue
Block a user