Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Jun 15, 2024
1 parent f8a8a45 commit 39fb326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMenu.child.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function setPosition() {
let left = props.targetElement.offsetWidth;
let top = (parentRect.top - rootRect.top) - 8;

maxHeight.value = window.innerHeight - rootRect.top - SCROLLBAR_THICKNESS;
maxHeight.value = window.innerHeight - SCROLLBAR_THICKNESS * 2;

if (rootRect.left + left + myRect.width >= (window.innerWidth - SCROLLBAR_THICKNESS)) {
left = -myRect.width;
Expand Down

0 comments on commit 39fb326

Please sign in to comment.