show_parent to menu_container

works in font menu and toc menu on k3
hope on touch the same
pull/599/head
nicolua 10 years ago
parent 09d6005bb3
commit 077b1bdf5a

@ -121,7 +121,11 @@ function ReaderFont:onShowFontMenu()
UIManager:close(menu_container) UIManager:close(menu_container)
end end
-- show menu -- show menu
main_menu.show_parent = menu_container
UIManager:show(menu_container) UIManager:show(menu_container)
return true return true
end end

@ -124,7 +124,6 @@ function ReaderToc:onShowToc()
ui = self.ui, ui = self.ui,
width = Screen:getWidth(), width = Screen:getWidth(),
height = Screen:getHeight(), height = Screen:getHeight(),
show_parent = menu_container,
is_borderless = true, is_borderless = true,
} }
@ -137,13 +136,13 @@ function ReaderToc:onShowToc()
self.ui:handleEvent(Event:new("PageUpdate", item.page)) self.ui:handleEvent(Event:new("PageUpdate", item.page))
end end
local w = Device:isTouchDevice() and menu_container or toc_menu
toc_menu.close_callback = function() toc_menu.close_callback = function()
UIManager:close(w) UIManager:close(menu_container)
end end
UIManager:show(w) toc_menu.show_parent = menu_container
UIManager:show(menu_container)
return true return true
end end

Loading…
Cancel
Save