Skip to content

Commit

Permalink
Fixed issued in IE11 with jumping grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mrg2001 committed Aug 30, 2016
1 parent f381a34 commit d177995
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/less/src/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,22 @@
}
}
}

.w2ui-grid-focus-input {
position: absolute;
top: 0;
right: 0;
z-index: -1;
opacity: 0;
// needed for IE11
padding: 0px;
margin: 0px;
width: 1px;
height: 1px;
resize: none;
border: 0px;
// --
}
}

/* SpeadSheet */
Expand Down
2 changes: 1 addition & 1 deletion src/w2grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4489,7 +4489,7 @@
' <div id="grid_'+ this.name +'_fsummary" class="w2ui-grid-body w2ui-grid-summary"></div>'+
' <div id="grid_'+ this.name +'_summary" class="w2ui-grid-body w2ui-grid-summary"></div>'+
' <div id="grid_'+ this.name +'_footer" class="w2ui-grid-footer"></div>'+
' <textarea id="grid_'+ this.name +'_focus" style="position: absolute; top: 0; right: 0; z-index: -1; opacity: 0"></textarea>'+
' <textarea id="grid_'+ this.name +'_focus" class="w2ui-grid-focus-input"></textarea>'+
'</div>');
if (this.selectType != 'row') $(this.box).addClass('w2ui-ss');
if ($(this.box).length > 0) $(this.box)[0].style.cssText += this.style;
Expand Down

0 comments on commit d177995

Please sign in to comment.