Commit 761cf15c authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Fix the SliverPadding debugPaint (#7989)

...for the case where there's no right or bottom padding.
parent 4e957015
......@@ -315,8 +315,10 @@ class RenderSliverPadding extends RenderSliver with RenderObjectWithChildMixin<R
childSize = child.getAbsoluteSizeRelativeToOrigin();
final SliverPhysicalParentData childParentData = child.parentData;
innerRect = (offset + childParentData.paintOffset) & childSize;
assert(outerRect.contains(innerRect.topLeft));
assert(outerRect.contains(innerRect.bottomRight));
assert(innerRect.top >= outerRect.top);
assert(innerRect.left >= outerRect.left);
assert(innerRect.right <= outerRect.right);
assert(innerRect.bottom <= outerRect.bottom);
}
debugPaintPadding(context.canvas, outerRect, innerRect);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment