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

@@ -476,7 +476,9 @@ function InputDialog:onTap()
if self.deny_keyboard_hiding then
return
end
self._input_widget:onCloseKeyboard()
if self._input_widget.onCloseKeyboard then
self._input_widget:onCloseKeyboard()
end
end
function InputDialog:getInputText()
@@ -816,6 +818,7 @@ function InputDialog:_addScrollButtons(nav_bar)
text = _("Case sensitive"),
checked = self.case_sensitive,
parent = input_dialog,
max_width = input_dialog._input_widget.width,
callback = function()
if not self.check_button_case.checked then
self.check_button_case:check()