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
Horizontal scrolling issue
21/12/2008
13:56
Avatar
gius
Member
Members
Forum Posts: 9
Member Since:
30/09/2008
sp_UserOfflineSmall Offline

Hi,

there is an issue with horizontal scrolling - according to the scrollbar, the table looks wider than it really is and when you try to scroll to the very right it kicks you several pixels back to left.

There is a simple workaround (hope this will not cause new problems. However, it works for me.

First, delete (or comment out) this line (around line 151 in grid.base.js) causing the "kick" back:

if(scrollLeft - this.hDiv.scrollLeft > 5) {this.bDiv.scrollLeft = this.bDiv.scrollLeft - 17;}

Then, add these lines at line 464 (before 'if(chw + testdata[1]...'):

var lastHeader = $("table thead tr:first th:last", $t.grid.hDiv); lastHeader.width(lastHeader.width() + 40);

Gius

23/12/2008
02:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Gius,

Good catch. Thank you. I'm not sure if this fix is right since this every time (when horizontall scroll) set the column width with +40 px. Moreover we should be sure here that this column is visibile. And the last issue it does not work correct with IE6.

I have a fix for this, but the only problem is that it does not work correct  in Safarai.

The solution is simple. Find the grid.hTable and set the marginRigth to 20px. Also the code for scrolling should be removed. I will try to to find a solution for Safari.

Best Regards and Thank you again.

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

23/12/2008
04:17
Avatar
gius
Member
Members
Forum Posts: 9
Member Since:
30/09/2008
sp_UserOfflineSmall Offline

Right margin was the first thing I tried. But it caused some problems ...in IE8 as far as I remember. But maybe I just put the margin to the table, not the div.

23/12/2008
04:19
Avatar
gius
Member
Members
Forum Posts: 9
Member Since:
30/09/2008
sp_UserOfflineSmall Offline

Btw: It does not widen the last column everytime while scrolling. Just when changing the grid's width.

29/12/2008
02:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks. Sorry I did not read the complete code. But I see you add the code in setGridWidth method. This fix the problem when you use this method, but not if this is not used. I continue to find a crossbrowser solution.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
39 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