fixing xaxis measure bug leading to too much left padding.
This commit is contained in:
parent
a846d2f4e8
commit
a74c8710df
2
xaxis.go
2
xaxis.go
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user