File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,8 @@ impl<'a> EventCtx<'a> {
158158 /// Widgets must call this method after adding a new child.
159159 pub fn children_changed ( & mut self ) {
160160 self . base_state . children_changed = true ;
161+ self . base_state . needs_layout = true ;
162+ self . base_state . needs_inval = true ;
161163 }
162164
163165 /// Get an object which can create text layouts.
@@ -451,6 +453,8 @@ impl<'a> LifeCycleCtx<'a> {
451453 /// Widgets must call this method after adding a new child.
452454 pub fn children_changed ( & mut self ) {
453455 self . base_state . children_changed = true ;
456+ self . base_state . needs_layout = true ;
457+ self . base_state . needs_inval = true ;
454458 }
455459
456460 /// Request an animation frame.
@@ -504,6 +508,8 @@ impl<'a> UpdateCtx<'a> {
504508 /// Widgets must call this method after adding a new child.
505509 pub fn children_changed ( & mut self ) {
506510 self . base_state . children_changed = true ;
511+ self . base_state . needs_layout = true ;
512+ self . base_state . needs_inval = true ;
507513 }
508514
509515 /// Get an object which can create text layouts.
You can’t perform that action at this time.
0 commit comments