bug 915735, dictionary cropped in landscape letter
This commit is contained in:
@@ -9,6 +9,7 @@ $Source$
|
|||||||
* header.inc.php: bug #963414, when PropertiesIconic was false,
|
* header.inc.php: bug #963414, when PropertiesIconic was false,
|
||||||
the code did not define the icon variables. Also, remove hardcoded
|
the code did not define the icon variables. Also, remove hardcoded
|
||||||
'Server' string
|
'Server' string
|
||||||
|
* pdf_schema.php: bug #915735, dictionary cropped in landscape letter
|
||||||
|
|
||||||
2004-05-30 Michal Čihař <michal@cihar.com>
|
2004-05-30 Michal Čihař <michal@cihar.com>
|
||||||
* libraries/display_tbl.lib.php: Return back to browsing after editing
|
* libraries/display_tbl.lib.php: Return back to browsing after editing
|
||||||
|
@@ -1217,7 +1217,7 @@ class PMA_RT
|
|||||||
} // end of the "PMA_RT" class
|
} // end of the "PMA_RT" class
|
||||||
|
|
||||||
function PMA_RT_DOC($alltables ){
|
function PMA_RT_DOC($alltables ){
|
||||||
global $db, $pdf, $orientation;
|
global $db, $pdf, $orientation, $paper;
|
||||||
//TOC
|
//TOC
|
||||||
$pdf->addpage($GLOBALS['orientation']);
|
$pdf->addpage($GLOBALS['orientation']);
|
||||||
$pdf->Cell(0,9, $GLOBALS['strTableOfContents'],1,0,'C');
|
$pdf->Cell(0,9, $GLOBALS['strTableOfContents'],1,0,'C');
|
||||||
@@ -1390,9 +1390,17 @@ function PMA_RT_DOC($alltables ){
|
|||||||
$pdf->Cell(20,8,ucfirst($GLOBALS['strDefault']),1,0,'C');
|
$pdf->Cell(20,8,ucfirst($GLOBALS['strDefault']),1,0,'C');
|
||||||
$pdf->Cell(25,8,ucfirst($GLOBALS['strExtra']),1,0,'C');
|
$pdf->Cell(25,8,ucfirst($GLOBALS['strExtra']),1,0,'C');
|
||||||
$pdf->Cell(45,8,ucfirst($GLOBALS['strLinksTo']),1,0,'C');
|
$pdf->Cell(45,8,ucfirst($GLOBALS['strLinksTo']),1,0,'C');
|
||||||
$pdf->Cell(67,8,ucfirst($GLOBALS['strComments']),1,0,'C');
|
|
||||||
|
if ($paper == 'A4') {
|
||||||
|
$comments_width = 67;
|
||||||
|
} else {
|
||||||
|
// this is really intended for 'letter'
|
||||||
|
// TODO: find optimal width for all formats
|
||||||
|
$comments_width = 50;
|
||||||
|
}
|
||||||
|
$pdf->Cell($comments_width,8,ucfirst($GLOBALS['strComments']),1,0,'C');
|
||||||
$pdf->Cell(45,8,'MIME',1,1,'C');
|
$pdf->Cell(45,8,'MIME',1,1,'C');
|
||||||
$pdf->SetWidths(array(25,20,20,10,20,25,45,67,45));
|
$pdf->SetWidths(array(25,20,20,10,20,25,45,$comments_width,45));
|
||||||
} else {
|
} else {
|
||||||
$pdf->Cell(20,8,ucfirst($GLOBALS['strField']),1,0,'C');
|
$pdf->Cell(20,8,ucfirst($GLOBALS['strField']),1,0,'C');
|
||||||
$pdf->Cell(20,8,ucfirst($GLOBALS['strType']),1,0,'C');
|
$pdf->Cell(20,8,ucfirst($GLOBALS['strType']),1,0,'C');
|
||||||
|
Reference in New Issue
Block a user