Fix propagating reshape_posted flag

This commit is contained in:
Nikita Lisitsa 2022-02-19 19:23:20 +03:00
parent aca553c566
commit 742ae9e21e

View file

@ -10,7 +10,10 @@ namespace psemek::ui
void element::set_parent(element * parent)
{
if (parent && reshape_posted_)
{
parent->root()->reshape_posted_ = true;
reshape_posted_ = false;
}
else if (!parent && parent_)
reshape_posted_ |= parent_->root()->reshape_posted_;