summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormleibman <michael.leibman@gmail.com>2010-12-06 00:09:11 -0800
committermleibman <michael.leibman@gmail.com>2010-12-06 00:09:11 -0800
commit2f944d7a8bdeb30d1205529e0f8d706d82f64d06 (patch)
tree9551afd2e92c73947bcc8ebb705b10b23afcf1d4
parent667b9b0d5a5dff77ff2444fc87aa5358bf76fe0f (diff)
downloadSlickGrid-2f944d7a8bdeb30d1205529e0f8d706d82f64d06.zip
SlickGrid-2f944d7a8bdeb30d1205529e0f8d706d82f64d06.tar.gz
SlickGrid-2f944d7a8bdeb30d1205529e0f8d706d82f64d06.tar.bz2
Small bug fix in getCellFromPoint.
-rw-r--r--slick.grid.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/slick.grid.js b/slick.grid.js
index 7804539..5ca3446 100644
--- a/slick.grid.js
+++ b/slick.grid.js
@@ -1615,6 +1615,10 @@ if (typeof Slick === "undefined") {
cell++;
}
+ if (cell < 0) {
+ cell = 0;
+ }
+
return {row:row,cell:cell-1};
}
@@ -2277,7 +2281,7 @@ if (typeof Slick === "undefined") {
"navigateLeft": navigateLeft,
"navigateRight": navigateRight,
"gotoCell": gotoCell,
- "getTopPanel": getTopPanel,
+ "getTopPanel": getTopPanel,
"showTopPanel": showTopPanel,
"hideTopPanel": hideTopPanel,
"showHeaderRowColumns": showHeaderRowColumns,