diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-08 21:36:43 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-08 21:36:43 (GMT) |
commit | 0d10d0126814ada87557a3f398ae4ea9391fc8de (patch) | |
tree | ffbaee39bffda5196aad7c987674d6cf591ce1b7 | |
parent | 68e98a754eddcfa8fbcafb171a8db3ed6e5c398e (diff) |
Fix page dimension fixing
-rw-r--r-- | epubview/widgets.py | 2 |
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;' |