Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: sky/sdk/lib/framework/rendering/block.dart

Issue 1155303005: Fix logic in RenderPadding. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/rendering/box.dart » ('j') | sky/sdk/lib/framework/rendering/box.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/block.dart
diff --git a/sky/sdk/lib/framework/rendering/block.dart b/sky/sdk/lib/framework/rendering/block.dart
index 8bc53939b53ba831b2d71003f6df6d1363f77e79..942b0de0d3e95df42273e24799bc4bc8c77ce142 100644
--- a/sky/sdk/lib/framework/rendering/block.dart
+++ b/sky/sdk/lib/framework/rendering/block.dart
@@ -14,6 +14,13 @@ class RenderBlock extends RenderBox with ContainerRenderNodeMixin<RenderBox, Blo
// uses the maximum width provided by the parent
// sizes itself to the height of its child stack
+ RenderBlock({
+ List<RenderBox> children
+ }) {
+ if (children != null)
+ children.forEach((child) { add(child); });
+ }
+
void setParentData(RenderBox child) {
if (child.parentData is! BlockParentData)
child.parentData = new BlockParentData();
« no previous file with comments | « no previous file | sky/sdk/lib/framework/rendering/box.dart » ('j') | sky/sdk/lib/framework/rendering/box.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698