Project

General

Profile

Bug #17107 » 0005186-4.1.0.RC2.v3.patch

Administrator Admin, 2007-03-10 02:47

View differences:

class.tx_cssstyledcontent_pi1.php 2007-03-10 02:39:02.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;
$defaultColumnWidthRem_Ratio = ($defaultColumnWidthRem*2<=$colCount)?2:1;
// 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 && $a%$defaultColumnWidthRem_Ratio==0) {
$columnWidths[$a]--;
$defaultColumnWidthRem--;
}
}
} else {
// We need another proportion
(3-3/12)