bugfix: calculate width of TouchMenu each time when TouchMenu is created

This commit is contained in:
chrox
2013-03-16 14:07:59 +08:00
parent 1f01537751
commit 17e967a227
3 changed files with 3 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ function ReaderMenu:onShowMenu()
if Device:isTouchDevice() then
main_menu = TouchMenu:new{
name = "wocao",
width = Screen:getWidth(),
tab_item_table = {
self.tab_item_table.navi,
self.tab_item_table.typeset,