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

Unified Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1166183002: Add Point.origin for new Point(0.0, 0.0) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/examples/raw/sector_layout.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/scaffold.dart
diff --git a/sky/sdk/lib/framework/components2/scaffold.dart b/sky/sdk/lib/framework/components2/scaffold.dart
index 51fce8024d71cf567a1fcc5b67f706a50ced8fe1..12bec49f5638ccb5b48e4087391635b84b570997 100644
--- a/sky/sdk/lib/framework/components2/scaffold.dart
+++ b/sky/sdk/lib/framework/components2/scaffold.dart
@@ -90,7 +90,7 @@ class RenderScaffold extends RenderBox {
RenderBox toolbar = _slots[ScaffoldSlots.toolbar];
toolbar.layout(new BoxConstraints.tight(new Size(size.width, kToolbarHeight)));
assert(toolbar.parentData is BoxParentData);
- toolbar.parentData.position = new Point(0.0, 0.0);
+ toolbar.parentData.position = Point.origin;
bodyPosition = kToolbarHeight;
bodyHeight -= kToolbarHeight;
}
@@ -111,7 +111,7 @@ class RenderScaffold extends RenderBox {
RenderBox drawer = _slots[ScaffoldSlots.drawer];
drawer.layout(new BoxConstraints(minWidth: 0.0, maxWidth: size.width, minHeight: size.height, maxHeight: size.height));
assert(drawer.parentData is BoxParentData);
- drawer.parentData.position = new Point(0.0, 0.0);
+ drawer.parentData.position = Point.origin;
}
if (_slots[ScaffoldSlots.floatingActionButton] != null) {
RenderBox floatingActionButton = _slots[ScaffoldSlots.floatingActionButton];
« no previous file with comments | « sky/examples/raw/sector_layout.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698