#780 Table Alignment problem

v1.0_(example)
closed
nobody
None
1
2013-03-15
2013-03-02
Daniel Flassak
No

When I create a table, the header does not align correctly on the second page.
PHP-Code:
$pdf->SetMargins("20mm","20mm","20mm");
$pdf->AddPage();
$pdf->setXY("20mm", "20mm");

Table template (used with WriteHTML):
<html>
<body>













{foreach from=$adressen item=adresse}









{/foreach}

Name Straße Ort Festnetz Handy E-Mail Geburtstag
{$adresse.name|escape} {$adresse.strasse|escape} {$adresse.ort|escape} {$adresse.festnetz|escape} {$adresse.handy|escape} {$adresse.email|escape} {$adresse.geburtstag|escape}

</body>
</html>

Result: see attachment

It aligns correctly if I do this as a workaround:
$pdf->setXY("18.4mm", "20mm");

The table header on the second page does not move to the left or right, not matter what setX is. It seems to be stuck st 18.4mm.

1 Attachments

Discussion

  • Daniel Flassak
    Daniel Flassak
    2013-03-02

    The bug tracker seems to render my table template instead of displaying the HTML code. So I have attached it.

     
    Last edit: Daniel Flassak 2013-03-02
    Attachments
  • Nicola Asuni
    Nicola Asuni
    2013-03-15

    • status: open --> closed
     
  • Nicola Asuni
    Nicola Asuni
    2013-03-15

    I am unable to reproduce your problem, please ask help on the Help forum.