mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:13:08 +02:00
E-book viewer: Fix text not being reflowed when resizing the viewer window and only the height changes.
This commit is contained in:
parent
1e85a69401
commit
1e1869bce8
1 changed files with 0 additions and 8 deletions
|
|
@ -660,14 +660,6 @@ def load_path(self, path, pos=0.0):
|
|||
self.view.load_path(path, pos=pos)
|
||||
|
||||
def viewport_resize_started(self, event):
|
||||
old, curr = event.size(), event.oldSize()
|
||||
if not self.window_mode_changed and old.width() == curr.width():
|
||||
# No relayout changes, so page position does not need to be saved
|
||||
# This is needed as Qt generates a viewport resized event that
|
||||
# changes only the height after a file has been loaded. This can
|
||||
# cause the last read position bookmark to become slightly
|
||||
# inaccurate
|
||||
return
|
||||
if not self.resize_in_progress:
|
||||
# First resize, so save the current page position
|
||||
self.resize_in_progress = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue