Forum


10:05

13/11/2008

Hi all.
This could be a simple one to fix, but I haven't been able to see where the error is.
I have some text that is rathre large and ocupies more than the cell width. It should therefore clip the overflow and stick the cell width, but instead it stretches the cell to acomodate the text.
Any ideas?
Cheers,
P.
01:23

Moderators
30/10/2007

Hello,
Check to see if you do not predefine some properties in css
for the table data.
Try to use only jqGrid to see what is this or exclude any other
CSS except grid.css
Regards
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.
05:57

07/11/2008

I had the same problem actually - I disabled all the styles bar the jqGrid.css and it still occurs. I can't for the life of me see what's wrong... Firebug reports the cell as having the correct overflow setting.
I tracked it down to this:
table { table-layout: fixed }
I had removed this property because it (for some reason) prevented the display of a right-side border on the table.
Next issue... getting the damn border to display!
06:18

07/11/2008

found it....
Line 464 in grid-base.js
change Math.round to Math.floor and it will calculate the table width properly so that the border(s) fit if you define them in CSS
w = Math.floor((IENum(nwidth)-IENum(testdata[2]))/IENum(testdata[0])*IENum(cw));
if you don't do this then the border will display or not depending on the width setting
09:26

Moderators
30/10/2007

Hello,
Thank you, I will consider this issue - i.e. will make some tests and will include it in the second beta soon.
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:
24 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