From 20a57037f79ebbe33b0af220ee81227fdb956bab Mon Sep 17 00:00:00 2001 From: romjerome Date: Sat, 5 Sep 2015 10:43:58 +0200 Subject: [PATCH] 8833: Workaround for displaying more lines on Text box via label's height --- gramps/gen/plug/docgen/graphdoc.py | 4 +++- gramps/plugins/drawreport/ancestortree.py | 4 +++- gramps/plugins/drawreport/descendtree.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gramps/gen/plug/docgen/graphdoc.py b/gramps/gen/plug/docgen/graphdoc.py index 97c4b846c..f7b8cc3ee 100644 --- a/gramps/gen/plug/docgen/graphdoc.py +++ b/gramps/gen/plug/docgen/graphdoc.py @@ -244,7 +244,9 @@ class GVOptions(): category = _("Note") ################################ - note = TextOption(_("Note to add to the graph"), + # workaround for bug 8833 + lines = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" + note = TextOption(_("Note to add to the graph") + lines, [""] ) note.set_help(_("This text will be added to the graph.")) menu.add_option(category, "note", note) diff --git a/gramps/plugins/drawreport/ancestortree.py b/gramps/plugins/drawreport/ancestortree.py index 9a06dfc58..5642b308c 100644 --- a/gramps/plugins/drawreport/ancestortree.py +++ b/gramps/plugins/drawreport/ancestortree.py @@ -927,8 +927,10 @@ class AncestorTreeOptions(MenuReportOptions): ################## category_name = _("Replace") + # workaround for bug 8833 + lines = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" repldisp = TextOption( - _("Replace Display Format:\n'Replace this'/' with this'"), + _("Replace Display Format:\n'Replace this'/' with this'") + lines, []) repldisp.set_help(_("i.e.\nUnited States of America/U.S.A")) menu.add_option(category_name, "replace_list", repldisp) diff --git a/gramps/plugins/drawreport/descendtree.py b/gramps/plugins/drawreport/descendtree.py index 0f7463c5a..548406184 100644 --- a/gramps/plugins/drawreport/descendtree.py +++ b/gramps/plugins/drawreport/descendtree.py @@ -1578,8 +1578,10 @@ class DescendTreeOptions(MenuReportOptions): ################## category_name = _("Replace") + # workaround for bug 8833 + lines = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" repldisp = TextOption( - _("Replace Display Format:\n'Replace this'/' with this'"), + _("Replace Display Format:\n'Replace this'/' with this'") + lines, []) repldisp.set_help(_("i.e.\nUnited States of America/U.S.A")) menu.add_option(category_name, "replace_list", repldisp)