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

Unified Diff: sky/sdk/lib/framework/rendering/box.dart

Issue 1153413003: Fix min/max typo in BoxConstraints.deflate (Closed) Base URL: git@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 | « no previous file | sky/tests/raw/padding_deflate.dart » ('j') | sky/tests/raw/padding_deflate-expected.txt » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/box.dart
diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
index 100219477b9e13b750ad812f20c20636e9065313..f6bb40bf0484012044dd904d444cf13b4650eb8a 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -55,9 +55,9 @@ class BoxConstraints {
double horizontal = edges.left + edges.right;
double vertical = edges.top + edges.bottom;
return new BoxConstraints(
- minWidth: math.min(0.0, minWidth - horizontal),
+ minWidth: math.max(0.0, minWidth - horizontal),
maxWidth: maxWidth - horizontal,
- minHeight: math.min(0.0, minHeight - vertical),
+ minHeight: math.max(0.0, minHeight - vertical),
maxHeight: maxHeight - vertical
);
}
« no previous file with comments | « no previous file | sky/tests/raw/padding_deflate.dart » ('j') | sky/tests/raw/padding_deflate-expected.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698