E-book viewer: Fix transitioning between full screen mode and normal mode sometimes causing current position to not be preserved. Fixes #1466082 [reader Position/formatting lost in full screen switch](https://bugs.launchpad.net/calibre/+bug/1466082)

This commit is contained in:
Kovid Goyal 2015-06-18 05:36:42 +05:30
parent a80f045e3b
commit e87b7f8d3d

View File

@ -712,13 +712,13 @@ class EbookViewer(MainWindow):
# restore the current page position.
self.resize_in_progress = False
wmc = self.window_mode_changed
if self.window_mode_changed:
self.view.document.after_resize()
if wmc:
# This resize is part of a window mode change, special case it
self.handle_window_mode_toggle()
else:
if self.isFullScreen():
self.relayout_fullscreen_labels()
self.view.document.after_resize()
if not wmc:
pre_footnote_pos = self.pre_footnote_toggle_position()
if pre_footnote_pos is not None: