Propagate reshape_posted to and from parents
This commit is contained in:
parent
2004f8043a
commit
aca553c566
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,11 @@ namespace psemek::ui
|
||||||
|
|
||||||
void element::set_parent(element * parent)
|
void element::set_parent(element * parent)
|
||||||
{
|
{
|
||||||
|
if (parent && reshape_posted_)
|
||||||
|
parent->root()->reshape_posted_ = true;
|
||||||
|
else if (!parent && parent_)
|
||||||
|
reshape_posted_ |= parent_->root()->reshape_posted_;
|
||||||
|
|
||||||
parent_ = parent;
|
parent_ = parent;
|
||||||
if (loop())
|
if (loop())
|
||||||
post_delayed_callbacks();
|
post_delayed_callbacks();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue