use borderless flat bookmark/toc window

This commit is contained in:
chrox
2014-04-04 23:37:50 +08:00
parent ac396e3aa9
commit 4a32f4415e
3 changed files with 22 additions and 18 deletions

View File

@@ -118,20 +118,20 @@ function ReaderToc:onShowToc()
end
end
local menu_container = CenterContainer:new{
dimen = Screen:getSize(),
}
local toc_menu = Menu:new{
title = _("Table of Contents"),
item_table = self.toc,
ui = self.ui,
width = Screen:getWidth()-50,
height = Screen:getHeight()-50,
width = Screen:getWidth(),
height = Screen:getHeight(),
show_parent = menu_container,
is_borderless = true,
}
table.insert(menu_container, toc_menu)
local menu_container = CenterContainer:new{
dimen = Screen:getSize(),
toc_menu,
}
function toc_menu:onMenuChoice(item)
self.ui:handleEvent(Event:new("PageUpdate", item.page))