mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure selection bar position is updated after a resize
This commit is contained in:
parent
976012bdf4
commit
5361db6916
@ -551,6 +551,11 @@ class IframeBoss:
|
||||
paged_resize_done()
|
||||
self.update_cfi()
|
||||
self.update_toc_position()
|
||||
sel = window.getSelection()
|
||||
if sel and not sel.isCollapsed:
|
||||
# update_selection_position has probably already been called by
|
||||
# no_latency_onscroll but make sure
|
||||
self.send_message('update_selection_position', selection_extents=selection_extents(current_layout_mode() is 'flow', True))
|
||||
|
||||
def received_window_size(self, data):
|
||||
scroll_viewport.update_window_size(data.width, data.height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user