Skip to content

Commit f2ea966

Browse files
authored
Merge pull request #224 from Geode-solutions/fix/context_menu
fix(ContextMenu): change js args overlap
2 parents c458e03 + e1c243d commit f2ea966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stores/menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const useMenuStore = defineStore("menu", () => {
142142
current_id.value = null
143143
}
144144

145-
async function openMenu(id, x, y, containerWidth, containerHeight) {
145+
async function openMenu(id, x, y, width, height) {
146146
await closeMenu()
147147
current_id.value = id
148148

@@ -151,8 +151,8 @@ export const useMenuStore = defineStore("menu", () => {
151151
menuY.value = y
152152
}
153153

154-
if (containerWidth) containerWidth.value = containerWidth
155-
if (containerHeight) containerHeight.value = containerHeight
154+
if (containerWidth) containerWidth.value = width
155+
if (containerHeight) containerHeight.value = height
156156

157157
display_menu.value = true
158158
}

0 commit comments

Comments
 (0)