From 16f50ebcbb2366cf72764549adb5f88c50110ede Mon Sep 17 00:00:00 2001 From: rasamassen Date: Thu, 9 Oct 2025 21:45:19 -0500 Subject: [PATCH] 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. --- samples/Sample_09_Tables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Sample_09_Tables.php b/samples/Sample_09_Tables.php index 3a887468b0..4c4f68f83d 100644 --- a/samples/Sample_09_Tables.php +++ b/samples/Sample_09_Tables.php @@ -125,8 +125,8 @@ $row = $table->addRow(); $row->addCell(1000, ['vMerge' => 'continue']); -$row->addCell(1000)->addText('C'); -$row->addCell(1000)->addText('D'); +$row->addCell(500)->addText('C'); +$row->addCell(500)->addText('D'); $row->addCell(1000)->addText('3'); // 5. Nested table