Fix right click in embeded menus
This commit is contained in:
parent
ace65ad586
commit
4e93654aa5
1
base.lua
1
base.lua
|
@ -215,6 +215,7 @@ end
|
|||
|
||||
local function add_embeded_menu(data,menu)
|
||||
add_widget(data,menu._internal.layout)
|
||||
menu._embeded_parent = data
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ local function setup_drawable(data)
|
|||
local internal = data._internal
|
||||
local get_map,set_map,private_data = internal.get_map,internal.set_map,internal.private_data
|
||||
get_map.visible = function() return true end --Let the parent handle that
|
||||
set_map.visible = function(v) if data._embeded_parent then data._embeded_parent.visible = v end end
|
||||
if not data.layout then
|
||||
data.layout = layout.vertical
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue