Input dialogs: keep size in rotation (#8223)
This commit is contained in:
1 parent
a4763a613f
commit
859327dea5
13 files changed
+23
-41
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user