Pārlūkot izejas kodu

Move popout menu over if it is too wide

master
Fen Dweller pirms 3 gadiem
vecāks
revīzija
54a57b6239
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js Parādīt failu

@@ -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";
}
}



Notiek ielāde…
Atcelt
Saglabāt