Hello
A previous bug was reported about bad positioning of the resize mark when horizontal scrolling is used. This is not my problem as it's resolved now ![]()
Here is my situation : my page contains a JQuery UI Layout, and the center block contains the jQgrid.
A consequence is the resize mark having a left offset from the cursor corresponding to the size of the left pane of the layout.
I think exactly the same issue occurs if the grid is in an absolute positioned container, or some custom layout.
I corrected this by modifying grid.base.js :
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
@@ -860,10 +860,10 @@ $.fn.jqGrid = function( pin ) {<br /> cols:[],<br /> footers: [],<br /> dragStart: function(i,x,y) {<br /> - this.resizing = { idx: i, startX: x.clientX, sOL : x.clientX-6};<br /> + this.resizing = { idx: i, startX: x.clientX, sOL : x.clientX-1-$(this.bDiv).offset().left};<br /> this.hDiv.style.cursor = "col-resize";<br /> this.curGbox = $("#rs_m"+$.jgrid.jqID(p.id),"#gbox_"+$.jgrid.jqID(p.id));<br /> - this.curGbox.css({display:"block",left:x.clientX-6,top:y[1],height:y[2]});<br /> + this.curGbox.css({display:"block",left:this.resizing.sOL,top:y[1],height:y[2]});<br /> $(ts).triggerHandler("jqGridResizeStart", [x, i]);<br /> if($.isFunction(p.resizeStart)) { p.resizeStart.call(ts,x,i); }<br /> document.onselectstart=function(){return false;}; |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top