PDA

View Full Version : Time Left & Distance column widths...


gcr
08-31-2008, 06:30 AM
http://demo.ilance.com/search.php?mode=product

On the above page, "Time Left" & "Distance" columns are displaying wide, is there any way of auto sizing these down so that the "Title" column gets a bit of space to breathe?
Every other column looks fairly well placed.


http://demo.ilance.com/search.php?mode=service

Above page using FireFox & Safari the "Time Left" column is huuuuge, in IE you can clearly see that it is showing at the correct width. The "Title" column deserves the floor IMO...

wterpilo
08-31-2008, 02:01 PM
Hi
you can remove some columns from listing in Search Options or you have sources where you can easily change size of Title column :)

Wojtek

gcr
08-31-2008, 08:24 PM
http://demo.ilance.com/search.php?mode=service

Above page using FireFox & Safari the "Time Left" column is huuuuge, in IE you can clearly see that it is showing at the correct width. The "Title" column deserves the floor IMO...


Yeah OK, I understand that can be done.

I think it's more of a browser compatibility issue, IE is generally showing the site in a standard and tidy manner, however, FF & Safari are slightly different in terms of the above.

What I actually wanted to know; Is there an easy way within ADMIN or somewhere to make columns display only as wide as they need to (auto width)?

Check the following for clarification (use FireFox)
http://demo.ilance.com/search.php?mode=product&sort=0|1
Such as "Time Left" & "Distance" where they are much too wide and ultimately bunch up the "Title" column. Like I say, it's fine in IE, so i'm just wondering is there code that needs tweaking for the next version release to keep a check on FF & Safari???

Peter
09-01-2008, 02:44 PM
This can be changed. This is the area in the code you may be looking for:


'distance' => array(
'width' => '69',
'rowwidth' => '1%',
'class' => 'tableheadcat',
'rowclass' => '',
'colspan' => '',
'nowrap' => 'nowrap="nowrap"',
'align' => 'center',
'rowalign' => 'center',
'extra' => ''
),


and then for the timeleft column:


'timeleft' => array(
'width' => '100',
'rowwidth' => '100',
'class' => 'tableheadcat',
'rowclass' => '',
'colspan' => '',
'nowrap' => 'nowrap="nowrap"',
'align' => 'center',
'rowalign' => 'center',
'extra' => ''
),


Notice the 'width' element? that's what you need to change :)

Regards,
Peter