RenderOverflowBox baseline logic

I accidentally lost this when extracting RenderOverflowBox from
RenderProxyBox.
This commit is contained in:
Hixie
2015-10-20 09:50:10 -07:00
parent 5214893043
commit 1e9e4e159d
3 changed files with 49 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ RenderBox getBox(double lh) {
padding: new EdgeDims.all(10.0),
child: new RenderCustomPaint(
child: paragraph,
onPaint: (canvas, size) {
onPaint: (PaintingCanvas canvas, Size size) {
double baseline = paragraph.getDistanceToBaseline(TextBaseline.alphabetic);
double w = paragraph.getMaxIntrinsicWidth(new BoxConstraints.loose(size));
double h = paragraph.getMaxIntrinsicHeight(new BoxConstraints.loose(size));