Skip to content

Commit 16f50eb

Browse files
authored
Update Sample_09_Tables.php - Fix Wrong Sizes in Sample
I don't know how this was effecting other writers, but in RTF, "B" and "C" were the same width, resulting in "D" being below "1" and "2" and "3" being in its own column. This was due to the following: "B" -> 1000 width, gridspan 2 "C" -> 1000 width "D" -> 1000 width The chart shows C and D below B, but this wasn't possible because C + D was double the width of B. This has been fixed.
1 parent 0ab0b49 commit 16f50eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/Sample_09_Tables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125

126126
$row = $table->addRow();
127127
$row->addCell(1000, ['vMerge' => 'continue']);
128-
$row->addCell(1000)->addText('C');
129-
$row->addCell(1000)->addText('D');
128+
$row->addCell(500)->addText('C');
129+
$row->addCell(500)->addText('D');
130130
$row->addCell(1000)->addText('3');
131131

132132
// 5. Nested table

0 commit comments

Comments
 (0)