Fix incorrect check for the innermost axis.

An axis is innermost when it's first among those not just in its
direction, but also on its side, i.e. left/right, of the plot. So the
inArray check should be against the samePosition list, not all.
Resolves #1056.
master
David Schnur 13 years ago
parent ed3f14897e
commit 1f9e3ba730

@ -1397,9 +1397,7 @@ Licensed under the MIT license.
// Determine whether the axis is the first (innermost) on its side
innermost = $.inArray(axis, $.grep(all, function (a) {
return a && a.reserveSpace;
})) == 0;
innermost = $.inArray(axis, samePosition) == 0;
// determine tick length - if we're innermost, we can use "full"

Loading…
Cancel
Save