fixing xaxis measure bug leading to too much left padding.

This commit is contained in:
Will Charczuk 2016-08-06 23:58:44 -07:00
parent a846d2f4e8
commit a74c8710df

View File

@ -80,7 +80,7 @@ func (xa XAxis) Measure(r Renderer, canvasBox Box, ra Range, defaults Style, tic
tb := r.MeasureText(t.Label)
var ltx, rtx int
tx := ra.Translate(v)
tx := canvasBox.Left + ra.Translate(v)
ty := canvasBox.Bottom + DefaultXAxisMargin + tb.Height()
switch tp {
case TickPositionUnderTick, TickPositionUnset: