Commit a98ac70b authored by Adam Barth's avatar Adam Barth

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
parent a54c2905
...@@ -887,8 +887,8 @@ abstract class RenderObjectWrapper extends Widget { ...@@ -887,8 +887,8 @@ abstract class RenderObjectWrapper extends Widget {
if (parentData != null) { if (parentData != null) {
assert(root.parentData != null); assert(root.parentData != null);
root.parentData.merge(parentData); // this will throw if the types aren't appropriate root.parentData.merge(parentData); // this will throw if the types aren't appropriate
if (parent.root != null) if (ancestor != null && ancestor.root != null)
parent.root.markNeedsLayout(); ancestor.root.markNeedsLayout();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment