pipipi-pikachu %!s(int64=5) %!d(string=hai) anos
pai
achega
151fd1563c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/components/Contextmenu/index.vue

+ 2 - 1
src/components/Contextmenu/index.vue

@@ -65,9 +65,10 @@ export default defineComponent({
       const { x, y } = props.axis
       const { x, y } = props.axis
       const normalMenuCount = props.menus.filter(menu => !menu.divider && !menu.hide).length
       const normalMenuCount = props.menus.filter(menu => !menu.divider && !menu.hide).length
       const dividerMenuCount = props.menus.filter(menu => menu.divider).length
       const dividerMenuCount = props.menus.filter(menu => menu.divider).length
+      const padding = 10
 
 
       const menuWidth = MENU_WIDTH
       const menuWidth = MENU_WIDTH
-      const menuHeight = normalMenuCount * MENU_HEIGHT + dividerMenuCount * DIVIDER_HEIGHT
+      const menuHeight = normalMenuCount * MENU_HEIGHT + dividerMenuCount * DIVIDER_HEIGHT + padding
 
 
       const maxMenuWidth = MENU_WIDTH + SUB_MENU_WIDTH - 10
       const maxMenuWidth = MENU_WIDTH + SUB_MENU_WIDTH - 10