|
@@ 2124-2132 (lines=9) @@
|
| 2121 |
|
|
| 2122 |
|
// for each cell without colspan, we get the max width for each column |
| 2123 |
|
$sw = array(); |
| 2124 |
|
for ($x = 0; $x < count($corr[0]); $x++) { |
| 2125 |
|
$m = 0; |
| 2126 |
|
for ($y = 0; $y < count($corr); $y++) { |
| 2127 |
|
if (isset($corr[$y][$x]) && is_array($corr[$y][$x]) && $corr[$y][$x][2] == 1) { |
| 2128 |
|
$m = max($m, $cases[$corr[$y][$x][1]][$corr[$y][$x][0]]['w']); |
| 2129 |
|
} |
| 2130 |
|
} |
| 2131 |
|
$sw[$x] = $m; |
| 2132 |
|
} |
| 2133 |
|
|
| 2134 |
|
// for each cell with colspan, we adapt the width of each column |
| 2135 |
|
for ($x = 0; $x < count($corr[0]); $x++) { |
|
@@ 2173-2181 (lines=9) @@
|
| 2170 |
|
|
| 2171 |
|
// for each cell without rowspan, we get the max height for each line |
| 2172 |
|
$sh = array(); |
| 2173 |
|
for ($y = 0; $y < count($corr); $y++) { |
| 2174 |
|
$m = 0; |
| 2175 |
|
for ($x = 0; $x < count($corr[0]); $x++) { |
| 2176 |
|
if (isset($corr[$y][$x]) && is_array($corr[$y][$x]) && $corr[$y][$x][3] == 1) { |
| 2177 |
|
$m = max($m, $cases[$corr[$y][$x][1]][$corr[$y][$x][0]]['h']); |
| 2178 |
|
} |
| 2179 |
|
} |
| 2180 |
|
$sh[$y] = $m; |
| 2181 |
|
} |
| 2182 |
|
|
| 2183 |
|
// for each cell with rowspan, we adapt the height of each line |
| 2184 |
|
for ($y = 0; $y < count($corr); $y++) { |