Forum
16:12
22/07/2013
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 :
@@ -860,10 +860,10 @@ $.fn.jqGrid = function( pin ) { cols:[], footers: [], dragStart: function(i,x,y) { - this.resizing = { idx: i, startX: x.clientX, sOL : x.clientX-6}; + this.resizing = { idx: i, startX: x.clientX, sOL : x.clientX-1-$(this.bDiv).offset().left}; this.hDiv.style.cursor = "col-resize"; this.curGbox = $("#rs_m"+$.jgrid.jqID(p.id),"#gbox_"+$.jgrid.jqID(p.id)); - this.curGbox.css({display:"block",left:x.clientX-6,top:y[1],height:y[2]}); + this.curGbox.css({display:"block",left:this.resizing.sOL,top:y[1],height:y[2]}); $(ts).triggerHandler("jqGridResizeStart", [x, i]); if($.isFunction(p.resizeStart)) { p.resizeStart.call(ts,x,i); } document.onselectstart=function(){return false;};
Most Users Ever Online: 715
Currently Online:
38 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66