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

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

Issue 1205953002: Version 0 of TabLabel, Tab, and TabBar components (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Updates per Ian's feedback 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
Index: sky/sdk/lib/rendering/box.dart
diff --git a/sky/sdk/lib/rendering/box.dart b/sky/sdk/lib/rendering/box.dart
index 55017dc42323d2b6847830f9e5cfcf2172d16fcf..1d12c97eb50edff4e79773d3f1b1662bb9a43c64 100644
--- a/sky/sdk/lib/rendering/box.dart
+++ b/sky/sdk/lib/rendering/box.dart
@@ -163,6 +163,10 @@ class BoxConstraints extends Constraints {
maxHeight: math.min(maxHeight, newMaxHeight));
}
+ BoxConstraints widthConstraints() => new BoxConstraints(minWidth: minWidth, maxWidth: maxWidth);
+
+ BoxConstraints heightConstraints() => new BoxConstraints(minHeight: minHeight, maxHeight: maxHeight);
+
final double minWidth;
final double maxWidth;
final double minHeight;
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/widgets/tabs.dart » ('j') | sky/sdk/lib/widgets/tabs.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698