Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix scroll the grid to top after selecting a cell in celledit mode

  • Loading branch information...
commit c8dc112382a36ba71285494283481c614c9e05c6 1 parent 87c8628
@tonytomov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/grid.celledit.js
View
2  js/grid.celledit.js
@@ -354,7 +354,7 @@ $.jgrid.extend({
if (!$t.grid || $t.p.cellEdit !== true ) {return;}
// trick to process keydown on non input elements
$t.p.knv = $t.p.id + "_kn";
- var selection = $("<div style='position:absolute;top:-1000000px;width:1px;height:1px;' tabindex='0'><div tabindex='-1' style='width:1px;height:1px;' id='"+$t.p.knv+"'></div></div>"),
+ var selection = $("<div style='position:fixed;top:-1000000px;width:1px;height:1px;' tabindex='0'><div tabindex='-1' style='width:1px;height:1px;' id='"+$t.p.knv+"'></div></div>"),
i, kdir;
function scrollGrid(iR, iC, tp){
if (tp.substr(0,1)=='v') {
Please sign in to comment.
Something went wrong with that request. Please try again.