mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
1c728d6945
The original menu layout needs manual dimension calculations such as white padding for displaying page information in footer as the title, all item contents and footer are stacked in one VerticalGroup. Out-of-bound error(koreader/koreader-base#43) will occur in some corner cases if we missed something in the calculation. The patch sent in this PR invented a new layout for menu widget in which no manual calculation is needed for displaying the footer. And the footer will be placed well inside the menu frame. +--------------+ | +----------+ | | |+--------+| | | || Header || | | |+--------+| | | |+--------+| | | || Item || | | || Item || | | |+--------+| | | |(Vertical | | | | Group) | | | +----------+ | | Footer | |(OverlapGroup)| +--------------+ |
||
---|---|---|
.. | ||
data | ||
reader | ||
widget | ||
device.lua | ||
event.lua | ||
font.lua | ||
geometry.lua | ||
gesturedetector.lua | ||
graphics.lua | ||
image.lua | ||
inputevent.lua | ||
readerui.lua | ||
rendertext.lua | ||
screen.lua | ||
time.lua | ||
uimanager.lua |