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

Unified Diff: sky/sdk/example/rendering/simple_autolayout.dart

Issue 1231903003: Update cassowary dependency to 0.1.7 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « DEPS ('k') | sky/sdk/lib/rendering/auto_layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/rendering/simple_autolayout.dart
diff --git a/sky/sdk/example/rendering/simple_autolayout.dart b/sky/sdk/example/rendering/simple_autolayout.dart
index 4fe2526e4b5f5979c716b3cda0496738e59c6357..3c8d6038a9077c6ff457ccc4f996d6c82a6eb159 100644
--- a/sky/sdk/example/rendering/simple_autolayout.dart
+++ b/sky/sdk/example/rendering/simple_autolayout.dart
@@ -46,7 +46,7 @@ void main() {
// The width of the second box should be twice as much as that of the first
// and third
- (p2.width * al.CM(2.0) == p1.width) as al.Constraint,
+ (p2.width * al.cm(2.0) == p1.width) as al.Constraint,
// The height of the three boxes should be equal to that of the container
(p1.height == p2.height) as al.Constraint,
@@ -55,10 +55,10 @@ void main() {
// The fourth box should be half as wide as the second and must be attached
// to the right edge of the same (by its center)
- (p4.width == p2.width / al.CM(2.0)) as al.Constraint,
- (p4.height == al.CM(50.0)) as al.Constraint,
+ (p4.width == p2.width / al.cm(2.0)) as al.Constraint,
+ (p4.height == al.cm(50.0)) as al.Constraint,
(p4.horizontalCenter == p2.rightEdge) as al.Constraint,
- (p4.verticalCenter == p2.height / al.CM(2.0)) as al.Constraint,
+ (p4.verticalCenter == p2.height / al.cm(2.0)) as al.Constraint,
]);
new SkyBinding(root: root);
« no previous file with comments | « DEPS ('k') | sky/sdk/lib/rendering/auto_layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698