Fix reshaping on window resize in ui controller
This commit is contained in:
parent
0cc04cdbb6
commit
9843a0cf06
1 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,13 @@ namespace psemek::ui::impl
|
||||||
return on_event_impl(event, root.get());
|
return on_event_impl(event, root.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool on_event(resize_event const & event)
|
||||||
|
{
|
||||||
|
apply(state, event);
|
||||||
|
delayed_queue.post([this]{ reshape(); });
|
||||||
|
return on_event_impl(event, root.get());
|
||||||
|
}
|
||||||
|
|
||||||
template <typename Event>
|
template <typename Event>
|
||||||
bool on_event_impl(Event const & event, component * element)
|
bool on_event_impl(Event const & event, component * element)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue