mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
Update MkMenu.vue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user