64527da4a3df80675c19b4d37c3cd9729bbce4d3 — Gordon Klaus 8 months ago aad49f4
component: lay out TextField.Editor in a Flexed child

This positions Prefix and Suffix correctly (at the ends of the field)
and stretches the editor as wide as possible so it accepts click
events in a larger area.

Fixes: https://todo.sr.ht/~eliasnaur/gio/490
Signed-off-by: Gordon Klaus <gordon.klaus@gmail.com>
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M component/text_field.go
M component/text_field.go => component/text_field.go +1 -1
@@ 307,7 307,7 @@ func (in *TextField) Layout(gtx C, th *material.Theme, hint string) D {
									return D{}
								layout.Rigid(func(gtx C) D {
								layout.Flexed(1, func(gtx C) D {
									return material.Editor(th, &in.Editor, "").Layout(gtx)
								layout.Rigid(func(gtx C) D {