aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/Control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/Control.cpp')
-rw-r--r--src/ui/controls/Control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/Control.cpp b/src/ui/controls/Control.cpp
index 41644755..2a94252f 100644
--- a/src/ui/controls/Control.cpp
+++ b/src/ui/controls/Control.cpp
@@ -110,7 +110,7 @@ void Control::InsertChildAt(Control* control, Index index) {
OnChildInserted(control, index);
if (host_) {
- host_->InvalidateLayout();
+ host_->ScheduleRelayout();
}
}
@@ -131,7 +131,7 @@ void Control::RemoveChildAt(Index index) {
OnChildRemoved(control, index);
if (host_) {
- host_->InvalidateLayout();
+ host_->ScheduleRelayout();
}
}