bug fix: set toc menu height and width
This commit is contained in:
1 parent
d3292740ec
commit
a19b3cc1b4
1 file changed
+2
-4
@@ -69,10 +69,8 @@ function ReaderToc:onShowToc()
|
||||
title = "Table of Contents",
|
||||
item_table = items,
|
||||
ui = self.ui,
|
||||
dimen = Geom:new{
|
||||
w = Screen:getWidth()-20,
|
||||
h = Screen:getHeight()-20
|
||||
},
|
||||
width = Screen:getWidth()-20,
|
||||
height = Screen:getHeight(),
|
||||
}
|
||||
function toc_menu:onMenuChoice(item)
|
||||
self.ui:handleEvent(Event:new("PageUpdate", item.page))
|
||||
|
||||
Reference in new issue
Block a user