PMCORE-3851 'Footer section' appears in the top of Document when the margin is equal to 0 (zero)
This commit is contained in:
@@ -170,7 +170,8 @@ class TCPDFHeaderFooter extends TCPDF
|
||||
$margins = $this->originalMargins;
|
||||
|
||||
//page adjust
|
||||
$this->SetY(-1 * ($margins['bottom']));
|
||||
$bottom = $margins['bottom'] <= 0 ? 1 : $margins['bottom'];
|
||||
$this->SetY(-1 * $bottom);
|
||||
$currentY = $this->GetY();
|
||||
|
||||
$this->buildFooterLogo($margins, $currentY, $struct);
|
||||
|
||||
Reference in New Issue
Block a user