Commit ed3f1489 authored by David Schnur's avatar David Schnur

Always set the axis innermost property.

It doesn't make sense to calculate the innermost property only when no
tickLength has been provided; the two have little to do with each other.
parent 7f94a133
......@@ -32,7 +32,10 @@
position: position,
tickFormatter: euroFormatter
} ],
legend: { position: "sw" }
legend: { position: "sw" },
grid: {
borderWidth: { top: 0, bottom: 1, left: 0, right: 0}
}
});
}
......
......@@ -1395,13 +1395,15 @@ Licensed under the MIT license.
if ($.inArray(axis, samePosition) == samePosition.length - 1)
axisMargin = 0; // outermost
// Determine whether the axis is the first (innermost) on its side
innermost = $.inArray(axis, $.grep(all, function (a) {
return a && a.reserveSpace;
})) == 0;
// determine tick length - if we're innermost, we can use "full"
if (tickLength == null) {
var sameDirection = $.grep(all, function (a) {
return a && a.reserveSpace;
});
innermost = $.inArray(axis, sameDirection) == 0;
if (tickLength == null) {
if (innermost)
tickLength = "full";
else
......
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