diff --git a/examples/widgets/card_collection.dart b/examples/widgets/card_collection.dart index 441be1dcd6b88..5dce65c21287a 100644 --- a/examples/widgets/card_collection.dart +++ b/examples/widgets/card_collection.dart @@ -76,6 +76,8 @@ class CardCollectionApp extends App { // background (text and icons) will just be clipped, not resized. Widget background = new Positioned( top: 0.0, + right: 0.0, + bottom: 0.0, left: 0.0, child: new Container( margin: const EdgeDims.all(4.0), diff --git a/sky/packages/sky/lib/rendering/stack.dart b/sky/packages/sky/lib/rendering/stack.dart index 4a01dae172d87..0d850a6c22bd8 100644 --- a/sky/packages/sky/lib/rendering/stack.dart +++ b/sky/packages/sky/lib/rendering/stack.dart @@ -146,29 +146,19 @@ class RenderStack extends RenderBox with ContainerRenderObjectMixin