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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1181533003: Support for alignItems (test incoming) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/sdk/lib/framework/components2/tool_bar.dart ('k') | sky/sdk/lib/framework/rendering/flex.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 1045eaf290e1a2eeb214926b2dc7eac03d8f5be6..32b05ab2a70baac8e7dae589c1635426a398ddda 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -787,7 +787,8 @@ class Flex extends MultiChildRenderObjectWrapper {
Flex(List<UINode> children, {
Object key,
this.direction: FlexDirection.horizontal,
- this.justifyContent: FlexJustifyContent.flexStart
+ this.justifyContent: FlexJustifyContent.flexStart,
+ this.alignItems: FlexAlignItems.center
Hixie 2015/06/10 23:40:13 don't specify arguments when the value you're sett
jackson 2015/06/11 16:58:38 we discussed this and it sounds like we're on the
}) : super(key: key, children: children);
RenderFlex get root { RenderFlex result = super.root; return result; }
@@ -795,11 +796,13 @@ class Flex extends MultiChildRenderObjectWrapper {
final FlexDirection direction;
final FlexJustifyContent justifyContent;
+ final FlexAlignItems alignItems;
void syncRenderObject(UINode old) {
super.syncRenderObject(old);
root.direction = direction;
root.justifyContent = justifyContent;
+ root.alignItems = alignItems;
}
}
« no previous file with comments | « sky/sdk/lib/framework/components2/tool_bar.dart ('k') | sky/sdk/lib/framework/rendering/flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698