mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Stacked does not repaint when its position changes
We were marking the parent *Widget's* render object as needing layout, but we actually need to walk up the component tree until we find the parent *RenderObjectWrapper* so we can mark actually mark the parent render object as needing layout. Fixes #408
This commit is contained in:
parent
a54c2905ee
commit
a98ac70b45
@ -887,8 +887,8 @@ abstract class RenderObjectWrapper extends Widget {
|
||||
if (parentData != null) {
|
||||
assert(root.parentData != null);
|
||||
root.parentData.merge(parentData); // this will throw if the types aren't appropriate
|
||||
if (parent.root != null)
|
||||
parent.root.markNeedsLayout();
|
||||
if (ancestor != null && ancestor.root != null)
|
||||
ancestor.root.markNeedsLayout();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user