Index: sky/examples/style/block-layout.sky |
diff --git a/sky/examples/style/block-layout.sky b/sky/examples/style/block-layout.sky |
index b0e67ba0ddf9fb84efa3d1f2dd6e654ecbe54802..a707af0e54a430c0a11509ce52ac31da6c650ae8 100644 |
--- a/sky/examples/style/block-layout.sky |
+++ b/sky/examples/style/block-layout.sky |
@@ -21,7 +21,7 @@ SKY MODULE |
let y = 0; |
while (!loop.done) { |
let child = loop.value; |
- if (child.needsLayout) { |
+ if (child.needsLayout || child.descendantNeedsLayout) { |
let dims = child.layoutManager.layout(width, null); |
this.setChildSize(child, dims.width, dims.height); |
} |