mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Input dialogs: keep size in rotation (#8223)
This commit is contained in:
@@ -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