Update MkMenu.vue

This commit is contained in:
syuilo
2026-02-23 17:42:53 +09:00
parent 379fb5b6ac
commit f9aa13e138

View File

@@ -539,11 +539,9 @@ function parentMouseMove(ev: MouseEvent) {
let childSideBottomY = childBounding.bottom - rootBounding.top;
const childSideHeight = childSideBottomY - childSideTopY;
if (childSideHeight < CHILD_SIDE_MIN_HEIGHT) {
const expandY = (CHILD_SIDE_MIN_HEIGHT - childSideHeight) / 2;
childSideTopY -= expandY;
childSideBottomY += expandY;
}
const expandY = Math.max(0, (CHILD_SIDE_MIN_HEIGHT - childSideHeight)) / 2;
childSideTopY -= expandY;
childSideBottomY += expandY;
childSideTopY -= childSideYPadding;
childSideBottomY += childSideYPadding;