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

Unified Diff: sky/framework/fn.dart

Issue 1128103009: [Effen] Start removing 'position'. (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 | « sky/framework/components/drawer.dart ('k') | sky/framework/layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fn.dart
diff --git a/sky/framework/fn.dart b/sky/framework/fn.dart
index 751aa43afefd39e82c023c4cd6d944956da3147b..427e4da8fd7f9cc7691af7965176ad4e42867970 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -593,6 +593,42 @@ class FlexContainer extends SkyElementWrapper {
}
}
+class FillStackContainer extends SkyElementWrapper {
+
+ RenderCSSStack _root;
+ RenderCSSStack _createNode() => new RenderCSSStack(this);
+
+ static final FillStackContainer _emptyContainer = new FillStackContainer();
+
+ SkyNodeWrapper get _emptyNode => _emptyContainer;
+
+ FillStackContainer({
+ Object key,
+ List<UINode> children,
+ Style style,
+ String inlineStyle
+ }) : super(
+ key: key,
+ children: _positionNodesToFill(children),
+ style: style,
+ inlineStyle: inlineStyle
+ );
+
+ static StackParentData _fillParentData = new StackParentData()
+ ..top = 0.0
+ ..left = 0.0
+ ..right = 0.0
+ ..bottom = 0.0;
+
+ static List<UINode> _positionNodesToFill(List<UINode> input) {
+ if (input == null)
+ return null;
+ return input.map((node) {
+ return new ParentDataNode(node, _fillParentData);
+ }).toList();
+ }
+}
+
class TextFragment extends SkyElementWrapper {
RenderCSSInline _root;
« no previous file with comments | « sky/framework/components/drawer.dart ('k') | sky/framework/layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698