diff --git a/lib/Layout/TableBox.php b/lib/Layout/TableBox.php index 0616f9d..5c773db 100644 --- a/lib/Layout/TableBox.php +++ b/lib/Layout/TableBox.php @@ -985,7 +985,7 @@ protected function shrinkToFit(string $availableSpace, int $step) $columnWidth = Math::mul($toPixelDisposition, $ratio); foreach ($columns as $column) { $columnDimensions = $column->getDimensions(); - $columnDimensions->setWidth(Math::add($columnWidth, $column->getStyle()->getHorizotnalPaddingsWidth())); + $columnDimensions->setWidth(Math::add($columnWidth, $column->getStyle()->getHorizontalPaddingsWidth())); $column->getFirstChild()->getDimensions()->setWidth($columnDimensions->getInnerWidth()); } }