Fix cell padding

This commit is contained in:
John Botella 2020-02-24 14:18:49 +01:00
parent 98407347e7
commit 06b2d459c0
2 changed files with 5 additions and 1 deletions

View File

@ -1096,7 +1096,11 @@ abstract class CommonDocGenerator
if (empty($columnText)) return;
$pdf->SetXY($this->getColumnContentXStart($colKey), $curY); // Set curent position
$colDef = $this->cols[$colKey];
$curentCellPaddinds = $pdf->getCellPaddings();
$pdf->setCellPadding(0);
$pdf->writeHTMLCell($this->getColumnContentWidth($colKey), 2, $this->getColumnContentXStart($colKey), $curY, $columnText, 0, 1, 0, true, $colDef['content']['align']);
$curentCellPaddinds = $pdf->getCellPaddings();
$pdf->setCellPaddings( $curentCellPaddinds['L'], $curentCellPaddinds['T'], $curentCellPaddinds['R'], $curentCellPaddinds['B']);
}
}

View File

@ -2242,7 +2242,7 @@ class pdf_sponge extends ModelePDFFactures
// Default field style for content
$this->defaultContentsFieldsStyle = array(
'align' => 'R', // R,C,L
'padding' => array(0.5, 0.5, 0.5, 0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
'padding' => array(0.5, 1, 0.5, 1), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
);
// Default field style for content