Skip to content

Commit

Permalink
It seems that this morning I forgot to drink a coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Nov 7, 2009
1 parent 07dad74 commit 7111c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/grid.base.js
Expand Up @@ -214,7 +214,7 @@ $.fn.jqGrid = function( pin ) {
},
dragEnd: function() {
this.hDiv.style.cursor = "default";
if(this.resizing && this.newWidth) {
if(this.resizing) {
var idx = this.resizing.idx,
nw = this.headers[idx].newWidth || this.headers[idx].width;
nw = parseInt(nw);
Expand All @@ -233,7 +233,7 @@ $.fn.jqGrid = function( pin ) {
if(this.footers.length>0) {this.footers[idx+p.nv].style.width = nw+"px";}
p.colModel[idx+p.nv].width = nw;
} else {
p.tblwidth = this.newWidth;
p.tblwidth = this.newWidth || p.tblwidth;
$('table:first',this.bDiv).css("width",p.tblwidth+"px");
$('table:first',this.hDiv).css("width",p.tblwidth+"px");
this.hDiv.scrollLeft = this.bDiv.scrollLeft;
Expand All @@ -243,8 +243,8 @@ $.fn.jqGrid = function( pin ) {
}
}
if($.isFunction(p.resizeStop)) p.resizeStop.call(this,nw,i);
this.curGbox=null;
}
this.curGbox=null;
document.onselectstart=new Function ("return true");
},
populateVisible: function() {
Expand Down

0 comments on commit 7111c38

Please sign in to comment.