diff --git a/examples/axes-multiple/index.html b/examples/axes-multiple/index.html
index 4c7c68c..da168fa 100644
--- a/examples/axes-multiple/index.html
+++ b/examples/axes-multiple/index.html
@@ -32,7 +32,10 @@
position: position,
tickFormatter: euroFormatter
} ],
- legend: { position: "sw" }
+ legend: { position: "sw" },
+ grid: {
+ borderWidth: { top: 0, bottom: 1, left: 0, right: 0}
+ }
});
}
diff --git a/jquery.flot.js b/jquery.flot.js
index 0e21a68..9ce07c7 100644
--- a/jquery.flot.js
+++ b/jquery.flot.js
@@ -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