미디어위키:Common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
98번째 줄: 98번째 줄:
mutationList.forEach(function(mutation){
mutationList.forEach(function(mutation){
console.log(mutation);
console.log(mutation);
if (node.classList && node.classList.contains('mwe-popups')) {
        mutation.addedNodes.forEach(function (node) {
requestAnimationFrame(function () {
if (node.classList && node.classList.contains('mwe-popups')) {
var bodyLeft = document.body.getBoundingClientRect().left;
requestAnimationFrame(function () {
            var left = parseInt(window.getComputedStyle(node).left);
var bodyLeft = document.body.getBoundingClientRect().left;
            node.style.left = left - bodyLeft + 'px';
            var left = parseInt(window.getComputedStyle(node).left);
        });
            node.style.left = left - bodyLeft + 'px';
         }
        });
        }       
         })
})
})
})
})