From 44e048941833edbfa2a88e3c18a62ed4394363a1 Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Mon, 13 Jun 2011 10:35:26 +0100 Subject: [PATCH] fixing lowerbound error --- mindplot/src/main/javascript/FixedDistanceBoard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindplot/src/main/javascript/FixedDistanceBoard.js b/mindplot/src/main/javascript/FixedDistanceBoard.js index 2951d862..f85a6da7 100644 --- a/mindplot/src/main/javascript/FixedDistanceBoard.js +++ b/mindplot/src/main/javascript/FixedDistanceBoard.js @@ -307,8 +307,8 @@ mindplot.FixedDistanceBoard.prototype.lookupEntryByPosition = function(pos) if (pos.y < firstEntry.getLowerLimit()) { var upperLimit = firstEntry.getLowerLimit(); - var lowerLimit = upperLimit + defaultHeight; - result = this.createBoardEntry(lowerLimit, upperLimit, -1); + var lowerLimit = upperLimit - defaultHeight; + result = this.createBoardEntry(lowerLimit, upperLimit, 0); } else { var entriesLenght = entries.length;