mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
InfoMessage: avoid overflowing screen height with long messages
When no height= provided, and the InfoMessage would overflow screen height when some long message is provided, decrease the font size until the widget fit.
This commit is contained in:
@@ -439,13 +439,11 @@ You can enable individual tweaks on this book with a tap, or view more details a
|
||||
callback = function()
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = item.info_text,
|
||||
face = Font:getFace(item.smaller_font and "x_smallinfofont" or "smallinfofont"),
|
||||
})
|
||||
end,
|
||||
hold_callback = function()
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = item.info_text,
|
||||
face = Font:getFace(item.smaller_font and "x_smallinfofont" or "smallinfofont"),
|
||||
})
|
||||
end,
|
||||
separator = item.separator,
|
||||
|
||||
Reference in New Issue
Block a user