mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
widget: update Editor dimensions after input
Fixes gio#162 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -354,6 +354,7 @@ func (e *Editor) Layout(gtx layout.Context, sh text.Shaper, font text.Font, size
|
||||
|
||||
e.makeValid()
|
||||
e.processEvents(gtx)
|
||||
e.makeValid()
|
||||
|
||||
if viewSize := gtx.Constraints.Constrain(e.dims.Size); viewSize != e.viewSize {
|
||||
e.viewSize = viewSize
|
||||
|
||||
Reference in New Issue
Block a user