Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Column resize mark position
14/08/2013
16:12
Avatar
mistic100
Member
Members
Forum Posts: 4
Member Since:
22/07/2013
sp_UserOfflineSmall Offline

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;};
16/12/2013
21:34
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

I'm using Bootstrap 3 and I needed this to correct that same issue. The main problem until now with Bootstrap 3 is the "box-sizing: border-box;" that breaks some parts.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information