mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
apps: use DrawEvent.Size instead of Window.Size
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -228,7 +228,7 @@ func (a *App) run() error {
|
||||
case app.DrawEvent:
|
||||
ops.Reset()
|
||||
a.cfg = e.Config
|
||||
cs := layout.ExactConstraints(a.w.Size())
|
||||
cs := layout.ExactConstraints(e.Size)
|
||||
a.Layout(ops, cs)
|
||||
if a.profiling {
|
||||
a.layoutTimings(ops, cs)
|
||||
|
||||
Reference in New Issue
Block a user