Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epubview/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epubview/widgets.py b/epubview/widgets.py
index 5b6dd68..d80c45a 100644
--- a/epubview/widgets.py
+++ b/epubview/widgets.py
@@ -12,7 +12,7 @@ class _WebView(webkit.WebView):
This is done via javascript at the moment
'''
#TODO: Need to check status of page load
- js = 'oldtitle=document.title;document.title=document.body.clientHeight;'
+ js = 'oldtitle=document.title;document.title=Math.max(document.body.scrollHeight, document.body.offsetHeight,document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);'
self.execute_script(js)
ret = self.get_main_frame().get_title()
js = 'document.title=oldtitle;'