Workaround for webengine 6.3 showing spurious scrollbar in modal

This commit is contained in:
Kovid Goyal 2022-07-17 12:36:59 +05:30
parent 62207d5e85
commit 44551059d1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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