From c5a68289ad310653f594fa6659311036271eed0f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Dec 2014 07:30:11 +0530 Subject: [PATCH] Fix header and footer template boxes too small in PDF output options in calibre 2.x --- src/calibre/gui2/convert/pdf_output.py | 2 ++ src/calibre/gui2/convert/pdf_output.ui | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/calibre/gui2/convert/pdf_output.py b/src/calibre/gui2/convert/pdf_output.py index 988564b6fc..e87abd3be1 100644 --- a/src/calibre/gui2/convert/pdf_output.py +++ b/src/calibre/gui2/convert/pdf_output.py @@ -41,4 +41,6 @@ class PluginWidget(Widget, Ui_Form): self.opt_pdf_standard_font.addItem(x) self.initialize_options(get_option, get_help, db, book_id) + self.layout().setFieldGrowthPolicy(self.layout().ExpandingFieldsGrow) + self.template_box.layout().setFieldGrowthPolicy(self.layout().AllNonFixedFieldsGrow) diff --git a/src/calibre/gui2/convert/pdf_output.ui b/src/calibre/gui2/convert/pdf_output.ui index 9140301946..205d9f91e6 100644 --- a/src/calibre/gui2/convert/pdf_output.ui +++ b/src/calibre/gui2/convert/pdf_output.ui @@ -7,16 +7,13 @@ 0 0 638 - 498 + 588 Form - - QFormLayout::ExpandingFieldsGrow - @@ -60,10 +57,23 @@ - + + + + 0 + 0 + + + + + + 0 + 0 + + &Unit: @@ -178,7 +188,7 @@ - + Page headers and footers