forked from openlp/openlp
fixes
This commit is contained in:
parent
b4d7798300
commit
ab18eaa051
@ -293,12 +293,15 @@ class MainDisplay(OpenLPMixin, Display, RegistryProperties):
|
|||||||
if self.height() != self.screen['size'].height() or not self.isVisible():
|
if self.height() != self.screen['size'].height() or not self.isVisible():
|
||||||
shrink = True
|
shrink = True
|
||||||
js = 'show_alert("%s", "%s")' % (text_prepared, 'top')
|
js = 'show_alert("%s", "%s")' % (text_prepared, 'top')
|
||||||
|
print(js)
|
||||||
else:
|
else:
|
||||||
shrink = False
|
shrink = False
|
||||||
js = 'show_alert("%s", "")' % text_prepared
|
js = 'show_alert("%s", "")' % text_prepared
|
||||||
|
print(js)
|
||||||
height = self.frame.evaluateJavaScript(js)
|
height = self.frame.evaluateJavaScript(js)
|
||||||
if shrink:
|
if shrink:
|
||||||
if text:
|
if text:
|
||||||
|
print(height)
|
||||||
alert_height = int(height)
|
alert_height = int(height)
|
||||||
self.resize(self.width(), alert_height)
|
self.resize(self.width(), alert_height)
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
@ -342,11 +342,11 @@ class HttpRouter(RegistryProperties):
|
|||||||
'settings': translate('RemotePlugin.Mobile', 'Settings'),
|
'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.
|
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
|
:param file_name: file name with path
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
@ -355,7 +355,6 @@ class HttpRouter(RegistryProperties):
|
|||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
file_name = os.path.join(parts[0], 'stage.html')
|
file_name = os.path.join(parts[0], 'stage.html')
|
||||||
elif len(parts) == 3:
|
elif len(parts) == 3:
|
||||||
print(parts)
|
|
||||||
file_name = os.path.join(parts[1], parts[2])
|
file_name = os.path.join(parts[1], parts[2])
|
||||||
path = os.path.normpath(os.path.join(self.config_dir, file_name))
|
path = os.path.normpath(os.path.join(self.config_dir, file_name))
|
||||||
if not path.startswith(self.config_dir):
|
if not path.startswith(self.config_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user