浏览代码

Move popout menu over if it is too wide

master
Fen Dweller 3 年前
父节点
当前提交
54a57b6239
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js 查看文件

@@ -4150,8 +4150,8 @@ function showPopoutMenu(id, event) {
let menuWidth = popoutMenu.getBoundingClientRect().width;
let screenWidth = window.innerWidth;

if (menuWidth * 1.5 > screenWidth) {
popoutMenu.style.left = 25 + "px";
if (rect.x + menuWidth > screenWidth) {
popoutMenu.style.left = Math.max(0, screenWidth - menuWidth) + "px";
}
}



正在加载...
取消
保存