changing how we handle default padding.

This commit is contained in:
Will Charczuk 2016-07-17 11:24:54 -07:00
parent 630885bd27
commit 0e3d2e9c1f
2 changed files with 47 additions and 1 deletions

View file

@ -323,7 +323,7 @@ func (c Chart) getAxisAdjustedCanvasBox(r Renderer, canvasBox Box, xr, yr, yra R
axesOuterBox = axesOuterBox.Grow(axesBounds)
}
return canvasBox.OuterConstrain(c.Box(), axesOuterBox)
return canvasBox.OuterConstrain(canvasBox, axesOuterBox)
}
func (c Chart) setRangeDomains(canvasBox Box, xr, yr, yra Range) (xr2, yr2, yra2 Range) {