Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Pośpiech committed Apr 16, 2019
1 parent 220aa03 commit 0562e34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
vendor/
.vscode/
.sonarlint/
.history/
10 changes: 5 additions & 5 deletions lib/Layout/TableBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class TableBox extends BlockBox
*/
protected $rows = [];
/**
* @var TableRowGroupBox|null
* @var null|TableRowGroupBox
*/
protected $anonymousRowGroup;
/**
Expand Down Expand Up @@ -442,16 +442,16 @@ protected function addToPreferredOthers(string $leftSpace)
foreach ($this->autoColumns as $columnIndex => $columns) {
$colDmns = $columns[0]->getDimensions();
$colWidth = $colDmns->getInnerWidth();
if (Math::comp($this->preferredWidth[$columnIndex], $colWidth) > 0) {
$autoNeeded[$columnIndex] = Math::sub($this->preferredWidth[$columnIndex], $colWidth);
if (Math::comp($this->preferredWidths[$columnIndex], $colWidth) > 0) {
$autoNeeded[$columnIndex] = Math::sub($this->preferredWidths[$columnIndex], $colWidth);
$autoNeededTotal = Math::add($autoNeededTotal, $autoNeeded[$columnIndex]);
}
}
foreach ($this->pixelColumns as $columnIndex => $columns) {
$colDmns = $columns[0]->getDimensions();
$colWidth = $colDmns->getInnerWidth();
if (Math::comp($this->preferredWidth[$columnIndex], $colWidth) > 0) {
$pixelNeeded[$columnIndex] = Math::sub($this->preferredWidth[$columnIndex], $colWidth);
if (Math::comp($this->preferredWidths[$columnIndex], $colWidth) > 0) {
$pixelNeeded[$columnIndex] = Math::sub($this->preferredWidths[$columnIndex], $colWidth);
$pixelNeededTotal = Math::add($pixelNeededTotal, $pixelNeeded[$columnIndex]);
}
}
Expand Down

0 comments on commit 0562e34

Please sign in to comment.