2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend/ui
chrox 1c728d6945 fix widget out-of-bound in bookmark and toc menus
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)|
   +--------------+
2013-09-01 16:36:45 +08:00
..
data word gap is set to smallest when selcting CJK languages 2013-07-20 03:33:58 +08:00
reader Add InputText:setText and avoid non-intuitive UI behavior after light toggle 2013-08-21 08:54:46 -03:00
widget fix widget out-of-bound in bookmark and toc menus 2013-09-01 16:36:45 +08:00
device.lua Change util.isEmulated to boolean and fix frontlight 2013-08-22 10:10:29 -03:00
event.lua file reorganisation 2012-05-19 01:10:57 +02:00
font.lua add glyph fallbacks 2013-06-16 15:33:50 +08:00
geometry.lua fix Geom:combine when sizeof rect is zero 2013-07-22 21:59:22 +08:00
gesturedetector.lua disable double tap detection by default in gesture detector 2013-07-31 19:35:47 +08:00
graphics.lua remove trailing white spaces 2013-04-08 14:40:12 +08:00
image.lua file reorganisation 2012-05-19 01:10:57 +02:00
inputevent.lua Change util.isEmulated to boolean and fix frontlight 2013-08-22 10:10:29 -03:00
readerui.lua only insert frontlight menu item if frontlight is detected 2013-08-14 06:52:39 -04:00
rendertext.lua add glyph fallbacks 2013-06-16 15:33:50 +08:00
screen.lua fix fractional pix returned by scaleByDPI 2013-07-28 16:05:51 +08:00
time.lua cleanup: use local variables in time arithmetic 2013-03-02 22:24:21 +08:00
uimanager.lua Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 2013-08-12 02:13:28 -03:00