Bug #17107 » 0005186-4.1.0.RC2.v2.patch
class.tx_cssstyledcontent_pi1.php 2007-03-10 02:19:11.000000000 +0100 | ||
---|---|---|
// All columns have the same width:
|
||
$defaultColumnWidth = ceil(($maxW-$colspacing*($colCount-1)-$colCount*$border*($borderThickness+$borderSpace)*2)/$colCount);
|
||
$defaultColumnWidthRem = ($colCount-($maxW-$colspacing*($colCount-1)-$colCount*$border*($borderThickness+$borderSpace)*2)%$colCount)%$colCount;
|
||
// Specify the maximum width for each column
|
||
$columnWidths = array();
|
||
... | ... | |
// Default 1:1-proportion, all columns same width
|
||
for ($a=0;$a<$colCount;$a++) {
|
||
$columnWidths[$a] = $defaultColumnWidth;
|
||
if ($defaultColumnWidthRem>0) {
|
||
$columnWidths[$a]--;
|
||
$defaultColumnWidthRem--;
|
||
}
|
||
}
|
||
} else {
|
||
// We need another proportion
|