Bug in document right-margin when more than 1 page.
[fa-stable.git] / reporting / includes / header2.inc
index 5ade3e0ef08364bb320a78cbfb31d2e422410f77..9ee5b8136533adfcb9df7d9c911c5729518685ed 100644 (file)
                $this->row = $iline5 - $this->lineHeight - 1;
                $this->Font('bold');
                $count = count($this->headers);
-               if (user_pagesize() == "Letter")
-                       $this->cols[$count] += 40;
-               else    
-                       $this->cols[$count] += 5;
+               $this->cols[$count] = $right - 3;
                for ($i = 0; $i < $count; $i++)
                        $this->TextCol($i, $i + 1, $this->headers[$i], -2);
                $this->Font();