d60bb2c2711e2e53c32546bc4c00f9a860580bf9 — Elias Naur a month ago 0c81af8
cmd/scatter: fix layout

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M cmd/scatter/ui.go
M cmd/scatter/ui.go => cmd/scatter/ui.go +2 -2
@@ 793,7 793,7 @@ func (p *threadsPage) fetchThreads() {
 }
 
 func (p *threadsPage) Layout(gtx *layout.Context) {
-	st := layout.Stack{Alignment: layout.Center}
+	st := layout.Stack{Alignment: layout.SE}
 
 	c1 := st.Rigid(gtx, func() {
 		f := layout.Flex{Axis: layout.Vertical}


@@ 1227,7 1227,7 @@ type fill struct {
 
 func (f fill) Layout(gtx *layout.Context) {
 	cs := gtx.Constraints
-	d := image.Point{X: cs.Width.Max, Y: cs.Height.Max}
+	d := image.Point{X: cs.Width.Min, Y: cs.Height.Min}
 	dr := f32.Rectangle{
 		Max: f32.Point{X: float32(d.X), Y: float32(d.Y)},
 	}