Menu

#11 Problem with colspan

open
nobody
None
5
2005-09-09
2005-09-09
Anonymous
No

Hi,

I was having a problem with table cells with a colspan
attribute. The width was being incorrectly calculated,
forcing cells in the given column to screw up.

To fix it I changed line 2543 from:

if ($minwidth < 0 and (-$minwidth) > $wc['miw'])
$wc['miw'] = (-$minwidth) +2; //increase minimum width

to

if ($minwidth < 0 and (-$minwidth) > $wc['miw'])
$wc['miw'] = $minwidth+2; //increase minimum width

All I've done is removed the minus sign from the final
$minwidth as this was effectively a double negative.
Now it seems to work fine.

Cheers,

Paul

Discussion


Log in to post a comment.