diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index d59090d40..1a18b8d96 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -293,12 +293,15 @@ class MainDisplay(OpenLPMixin, Display, RegistryProperties): if self.height() != self.screen['size'].height() or not self.isVisible(): shrink = True js = 'show_alert("%s", "%s")' % (text_prepared, 'top') + print(js) else: shrink = False js = 'show_alert("%s", "")' % text_prepared + print(js) height = self.frame.evaluateJavaScript(js) if shrink: if text: + print(height) alert_height = int(height) self.resize(self.width(), alert_height) self.setVisible(True) diff --git a/openlp/plugins/remotes/lib/httprouter.py b/openlp/plugins/remotes/lib/httprouter.py index 78afd4de5..d2acc4ddf 100644 --- a/openlp/plugins/remotes/lib/httprouter.py +++ b/openlp/plugins/remotes/lib/httprouter.py @@ -342,11 +342,11 @@ class HttpRouter(RegistryProperties): 'settings': translate('RemotePlugin.Mobile', 'Settings'), } - def stages(self, temp_path, file_name): + def stages(self, url_path, file_name): """ Allow Stage view to be delivered with custom views. - :param temp_path: base path of the URL + :param url_path: base path of the URL. Not used but passed by caller :param file_name: file name with path :return: """ @@ -355,7 +355,6 @@ class HttpRouter(RegistryProperties): if len(parts) == 1: file_name = os.path.join(parts[0], 'stage.html') elif len(parts) == 3: - print(parts) file_name = os.path.join(parts[1], parts[2]) path = os.path.normpath(os.path.join(self.config_dir, file_name)) if not path.startswith(self.config_dir):