Checkbutton: ensure max width, multiline if needed (#8066)

This commit is contained in:
hius07
2021-08-14 01:49:19 +03:00
committed by GitHub
parent b622d6edd8
commit c8a7f52672
6 changed files with 25 additions and 7 deletions

View File

@@ -140,6 +140,7 @@ function ReaderSearch:onShowFulltextSearchInput()
text = _("Case sensitive"),
checked = not self.case_insensitive,
parent = self.input_dialog,
max_width = self.input_dialog._input_widget.width,
callback = function()
if not self.check_button_case.checked then
self.check_button_case:check()
@@ -152,6 +153,7 @@ function ReaderSearch:onShowFulltextSearchInput()
text = _("Regular expression (hold for help)"),
checked = self.use_regex,
parent = self.input_dialog,
max_width = self.input_dialog._input_widget.width,
callback = function()
if not self.check_button_regex.checked then
self.check_button_regex:check()