diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-08 21:36:43 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-09 11:12:05 (GMT) |
commit | c8bc4330294d5d4d57b18bc9a62eea7db8e5a877 (patch) | |
tree | cf85032560a42b8951181921b96eb3f8deaff60b | |
parent | 207a6d02a2ed0c7a1287c7ebdd9f03d37127b442 (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;' |