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

Unified Diff: sky/framework/components/action_bar.dart

Issue 1122413006: [Effen] Move 'flex' out of CSS also. (mark II) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: git cl description 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/framework/fn.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/action_bar.dart
diff --git a/sky/framework/components/action_bar.dart b/sky/framework/components/action_bar.dart
index f874009412c7ed6093f5215b1b9b2a3f9aa5b502..309fb9b866144a07fb5ce976a5988b4c2e719a0a 100644
--- a/sky/framework/components/action_bar.dart
+++ b/sky/framework/components/action_bar.dart
@@ -16,8 +16,9 @@ class ActionBar extends Component {
padding-top: ${kStatusBarHeight}px;''');
static Style _centerStyle = new Style('''
- padding-left: 24px;
- flex: 1;''');
+ padding-left: 24px;''');
+
+ static FlexBoxParentData _centerLayoutSettings = new FlexBoxParentData()..flex = 1;
UINode left;
UINode center;
@@ -31,7 +32,7 @@ class ActionBar extends Component {
}) : super(key: key);
UINode build() {
- List<UINode> children = [left, new StyleNode(center, _centerStyle)];
+ List<UINode> children = [left, new StyleNode(new ParentDataNode(center, _centerLayoutSettings), _centerStyle)];
if (right != null)
children.addAll(right);
« no previous file with comments | « no previous file | sky/framework/fn.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698