Hi!
I have noticed that if jqGrid is inside a modal dialog (bootstrap modal in my case) position of the div.ui-jqgrid-resize-mark is wrong calculated when I'm trying to resize a column.
Here is my patch for jquery.jqGrid.src.js:
866,871c866
< this.curGboxParentOffset = this.curGbox.parents().filter(function() {
< // reduce to only relative position or "body" elements
< var $this = $(this);
< return $this.is('body') || $this.css('position') == 'relative';
< }).slice(0,1).offset();
< this.curGbox.css({display:"block",left:x.clientX-6-this.curGboxParentOffset.left,top:y[1],height:y[2]});
—
> this.curGbox.css({display:”block”,left:x.clientX-6,top:y[1],height:y[2]});
882c877
< this.curGbox.css({left:this.resizing.sOL+diff-this.curGboxParentOffset.left});
—
> this.curGbox.css({left:this.resizing.sOL+diff});
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top