From b9aaaf05f69bb2538ccdd7b70269d5d74541cfe5 Mon Sep 17 00:00:00 2001 From: Edwin Lunando Date: Sat, 19 May 2012 15:46:22 +0700 Subject: [PATCH] Using the renderer.py calculation --- openlp/core/lib/theme.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/openlp/core/lib/theme.py b/openlp/core/lib/theme.py index afc217e79..61e7cdcaf 100644 --- a/openlp/core/lib/theme.py +++ b/openlp/core/lib/theme.py @@ -448,11 +448,12 @@ class ThemeXML(object): """ Set the header and footer size into the current primary screen """ - self.font_main_width = current_screen[u'size'].width()-20 - self.font_main_height = current_screen[u'size'].height()-100 - self.font_footer_width = current_screen[u'size'].width()-20 - self.font_footer_y = current_screen[u'size'].height()-80 - self.font_footer_height = 70 + self.font_main_y = 0; + self.font_main_width = current_screen[u'size'].width() - 20 + self.font_main_height = current_screen[u'size'].height() * 9 / 10 + self.font_footer_width = current_screen[u'size'].width() - 20 + self.font_footer_y = current_screen[u'size'].height() * 9 / 10 + self.font_footer_height = current_screen[u'size'].height() / 10 def dump_xml(self): """