fixing lowerbound error

This commit is contained in:
Pablo Luna 2011-06-13 10:36:11 +01:00
parent d565d6899e
commit 8ce317e71f

View File

@ -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;