mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Workaround for webengine 6.3 showing spurious scrollbar in modal
This commit is contained in:
parent
62207d5e85
commit
44551059d1
@ -76,7 +76,8 @@ class ModalContainer:
|
||||
div.firstChild.lastChild.addEventListener('click', def(event): event.preventDefault(), self.close_current_modal(event);)
|
||||
|
||||
# Content container style
|
||||
set_css(div.firstChild.firstChild, user_select='text', max_height='60vh', overflow='auto')
|
||||
# need padding: 1px to avoid scrollbar in modal on Qt WebEngine 6.3
|
||||
set_css(div.firstChild.firstChild, user_select='text', max_height='60vh', overflow='auto', padding='1px')
|
||||
|
||||
self.modals = v'[]'
|
||||
self.current_modal = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user