From 543a7df0f69ab74a000b795b161afe77e7534c1b Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Sat, 19 Dec 2015 21:07:36 -0800 Subject: [PATCH] Update RenderPositionedBox documentation. --- packages/flutter/lib/src/rendering/shifted_box.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/rendering/shifted_box.dart b/packages/flutter/lib/src/rendering/shifted_box.dart index 85ee3829ca..837db87a59 100644 --- a/packages/flutter/lib/src/rendering/shifted_box.dart +++ b/packages/flutter/lib/src/rendering/shifted_box.dart @@ -163,7 +163,12 @@ class RenderPadding extends RenderShiftedBox { /// /// For example, to align a box at the bottom right, you would pass this box a /// tight constraint that is bigger than the child's natural size, -/// with horizontal and vertical set to 1.0. +/// with the alignment set to (1.0, 1.0). +/// +/// By default, sizes to be as big as possible in both axes. If either axis is +/// unconstrained, then in that direction it will be sized to fit the child's +/// dimensions. Using widthFactor and heightFactor you can force this latter +/// behaviour in all cases. class RenderPositionedBox extends RenderShiftedBox { RenderPositionedBox({ RenderBox child,