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
Text overflow not working.
25/11/2008
10:05
Avatar
palobo
Portugal
Member
Members
Forum Posts: 41
Member Since:
13/11/2008
sp_UserOfflineSmall Offline

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.

26/11/2008
01:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

26/01/2009
05:57
Avatar
oobi
New Member
Members
Forum Posts: 2
Member Since:
07/11/2008
sp_UserOfflineSmall Offline

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!

26/01/2009
06:18
Avatar
oobi
New Member
Members
Forum Posts: 2
Member Since:
07/11/2008
sp_UserOfflineSmall Offline

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

26/01/2009
09:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information