Index: sky/sdk/lib/framework/components2/tool_bar.dart |
diff --git a/sky/sdk/lib/framework/components2/tool_bar.dart b/sky/sdk/lib/framework/components2/tool_bar.dart |
index 644f6163d082ae9a922b904c19fce53a1af4d6eb..ea5dec223a4b0118c12813ce78f6b343776f5360 100644 |
--- a/sky/sdk/lib/framework/components2/tool_bar.dart |
+++ b/sky/sdk/lib/framework/components2/tool_bar.dart |
@@ -35,13 +35,12 @@ class ToolBar extends Component { |
if (right != null) |
children.addAll(right); |
- // TODO(hansmuller): use align-items:flex-end when FlexContainer supports it. |
- UINode bottomJustifiedChild = new FlexContainer( |
+ // TODO(hansmuller): use align-items:flex-end when Flex supports it. |
+ UINode bottomJustifiedChild = new Flex([ |
+ new Container(child: new Flex(children), height: kToolBarHeight) |
+ ], |
direction: FlexDirection.vertical, |
- justifyContent: FlexJustifyContent.flexEnd, |
- children: [new Container( |
- child: new FlexContainer(children: children), |
- height: kToolBarHeight)]); |
+ justifyContent: FlexJustifyContent.flexEnd); |
return new Container( |
child: bottomJustifiedChild, |