Restore position after resize

This commit is contained in:
Kovid Goyal 2016-09-28 11:58:23 +05:30
parent f2776745cd
commit 52b3964ce6

View File

@ -206,6 +206,10 @@ class IframeBoss:
def onresize(self):
if current_layout_mode() is not 'flow':
self.do_layout()
if self.last_cfi:
cfi = self.last_cfi[len('epubcfi(/'):-1].partition('/')[2]
if cfi:
paged_jump_to_cfi('/' + cfi)
self.update_cfi()
def onwheel(self, evt):