Input dialogs: keep size in rotation (#8223)

This commit is contained in:
hius07
2021-09-17 20:36:57 +03:00
committed by GitHub
parent a4763a613f
commit 859327dea5
13 changed files with 23 additions and 41 deletions

View File

@@ -107,7 +107,7 @@ function ReaderSearch:onShowFulltextSearchInput()
end
self.input_dialog = InputDialog:new{
title = _("Enter text to search for"),
width = math.floor(Screen:getWidth() * 0.9),
width = math.floor(math.min(Screen:getWidth(), Screen:getHeight()) * 0.9),
input = self.last_search_text,
buttons = {
{
@@ -153,7 +153,10 @@ function ReaderSearch:onShowFulltextSearchInput()
self.check_button_regex:toggleCheck()
end,
hold_callback = function()
UIManager:show(InfoMessage:new{ text = help_text })
UIManager:show(InfoMessage:new{
text = help_text,
width = Screen:getWidth() * 0.9,
})
end,
}
self.input_dialog:addWidget(self.check_button_regex)