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

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

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://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/sdk/lib/rendering/sky_binding.dart ('k') | sky/sdk/lib/theme/shadows.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/rendering/stack.dart
diff --git a/sky/sdk/lib/rendering/stack.dart b/sky/sdk/lib/rendering/stack.dart
index a487aa576fd8e12607ae2640e822f09bb889f54b..747ffdf8f75fd1189399aa6ec48e6561b2ad1c28 100644
--- a/sky/sdk/lib/rendering/stack.dart
+++ b/sky/sdk/lib/rendering/stack.dart
@@ -138,7 +138,7 @@ class RenderStack extends RenderBox with ContainerRenderObjectMixin<RenderBox, S
if (hasNonPositionedChildren)
size = new Size(width, height);
else
- size = constraints.constrain(Size.infinite);
+ size = constraints.biggest;
assert(!size.isInfinite);
assert(size.width == constraints.constrainWidth(width));
« no previous file with comments | « sky/sdk/lib/rendering/sky_binding.dart ('k') | sky/sdk/lib/theme/shadows.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698