Commit 64b27be5 authored by Lex Berezhny's avatar Lex Berezhny

maxWidth -> maxIntrinsicWidth

parent 9153e7bb
...@@ -171,7 +171,7 @@ class ChartPainter { ...@@ -171,7 +171,7 @@ class ChartPainter {
..maxWidth = _rect.width ..maxWidth = _rect.width
..layout(); ..layout();
_horizontalGridlines.add(gridline); _horizontalGridlines.add(gridline);
yScaleWidth = math.max(yScaleWidth, gridline.labelPainter.maxWidth); yScaleWidth = math.max(yScaleWidth, gridline.labelPainter.maxIntrinsicWidth);
} }
yScaleWidth += kScaleMargin; yScaleWidth += kScaleMargin;
...@@ -218,7 +218,7 @@ class ChartPainter { ...@@ -218,7 +218,7 @@ class ChartPainter {
..maxWidth = markerRect.width ..maxWidth = markerRect.width
..layout(); ..layout();
_indicator.labelPosition = new Point( _indicator.labelPosition = new Point(
((_indicator.start.x + _indicator.end.x) / 2.0) - _indicator.labelPainter.maxWidth / 2.0, ((_indicator.start.x + _indicator.end.x) / 2.0) - _indicator.labelPainter.maxIntrinsicWidth / 2.0,
_indicator.start.y - _indicator.labelPainter.size.height - kIndicatorMargin _indicator.start.y - _indicator.labelPainter.size.height - kIndicatorMargin
); );
} }
......
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