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

Unified Diff: sky/framework/layouts/block.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (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/layout.dart ('k') | sky/framework/net/fetch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/layouts/block.dart
diff --git a/sky/framework/layouts/block.dart b/sky/framework/layouts/block.dart
deleted file mode 100644
index 33f464d7f2dd4887bcbb76fd61b51d4cc1624a97..0000000000000000000000000000000000000000
--- a/sky/framework/layouts/block.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-
-import 'dart:sky' as sky;
-import '../fn.dart';
-
-class BlockLayout extends LayoutContainer {
-
- BlockLayout({
- Object key,
- List<UINode> children,
- Style style,
- String inlineStyle
- }) : super(
- key: key,
- children: children,
- style: style,
- inlineStyle: inlineStyle
- );
-
- void layout(sky.Element skyNode) {
- double y = 0.0;
- skyNode.width = skyNode.parentNode.width;
- skyNode.getChildNodes().forEach((child) {
- child.layout();
- child.x = 0.0;
- child.y = y;
- y += child.height;
- });
- skyNode.height = y;
- }
-}
« no previous file with comments | « sky/framework/layout.dart ('k') | sky/framework/net/fetch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698