Forum
13:56
30/09/2008
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
02:52
Moderators
30/10/2007
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.
02:32
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66