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:
1 parent
c327069f43
commit
f533acb7f9
4 files changed
+36
-12
No files matched your search
@@ -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