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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « sky/framework/layout.dart ('k') | sky/framework/net/fetch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 import 'dart:sky' as sky;
3 import '../fn.dart';
4
5 class BlockLayout extends LayoutContainer {
6
7 BlockLayout({
8 Object key,
9 List<UINode> children,
10 Style style,
11 String inlineStyle
12 }) : super(
13 key: key,
14 children: children,
15 style: style,
16 inlineStyle: inlineStyle
17 );
18
19 void layout(sky.Element skyNode) {
20 double y = 0.0;
21 skyNode.width = skyNode.parentNode.width;
22 skyNode.getChildNodes().forEach((child) {
23 child.layout();
24 child.x = 0.0;
25 child.y = y;
26 y += child.height;
27 });
28 skyNode.height = y;
29 }
30 }
OLDNEW
« 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