apps: use DrawEvent.Size instead of Window.Size

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-14 13:10:42 +02:00
parent 6e97d65af1
commit 26543ba1a5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)