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
Autowidth and setGridWidth
14/09/2009
04:26
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hello Tony,

I've noticed a weird behaviour if I use the autowith parameter and the setGridWidth funtion together.

I have a grid with a few rows thus scrolling isn't necessary. Befor I execute the setGridWidth funtion there's a gap at the right side (surly for the scrollbar). But if I use the setGridWidth function the gap disapears and I have a kind of the 2px Border.

Here are some screenshots with the behaviour:

BeforeImage Enlarger AfterImage Enlarger

How can I handle this behaviour? I wish there where a “After” view but with 1px Border :)

PS: For the behaviour I used the the grid at the demo page: Page -> New in version 3.5 -> Autowith and row numbering

First I used the setGridHeight command to resize the grid so no scrolling is necessary. Than I executed the setGridWidth command. (All commands are done live at the page with firebug)

14/09/2009
22:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I do not think that this is a bug. The 1px comes from the whole grid div the other pixel comes from the table right border of the cell. Any attempt to "correct" this will cause other problems.

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.

15/09/2009
01:31
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

In my opinion the 2px border could be ignored. The behaviour that the right gap changes after resize looks a bit strange. Is it possible to hide the gap even at the grid definition? It looks confusing if in the beginning there's a gap and after resize it disappears. An alternative would be to show the gap permanent. Maybe this is possible? I just try to create a consistent view. I hope you understand what I mean :)

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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