Make ui controller root_proxy post on_reshape instead of calling it directly

This commit is contained in:
Nikita Lisitsa 2022-02-05 12:38:35 +03:00
parent d653cb1b8b
commit d577282fce

View file

@ -33,7 +33,7 @@ namespace psemek::ui
if (root)
root->reshape(bbox);
if (on_reshape)
on_reshape();
post(on_reshape);
}
geom::box<float, 2> size_constraints() const override