mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
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:
parent
a80f045e3b
commit
e87b7f8d3d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user