Commit 36bfcbf0 authored by David Schnur's avatar David Schnur

Merge pull request #929 from hizhengfu/master

Fix an error in plot offset calculation.
parents f06fe931 3c1d04cb
...@@ -1142,10 +1142,10 @@ Licensed under the MIT license. ...@@ -1142,10 +1142,10 @@ Licensed under the MIT license.
for (var a in plotOffset) { for (var a in plotOffset) {
if(typeof(options.grid.borderWidth) == "object") { if(typeof(options.grid.borderWidth) == "object") {
plotOffset[a] = showGrid ? options.grid.borderWidth[a] : 0; plotOffset[a] += showGrid ? options.grid.borderWidth[a] : 0;
} }
else { else {
plotOffset[a] = showGrid ? options.grid.borderWidth : 0; plotOffset[a] += showGrid ? options.grid.borderWidth : 0;
} }
} }
......
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