미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 태그: 되돌려진 기여 |
Resultofunion (토론 | 기여) 편집 요약 없음 태그: 수동 되돌리기 |
||
| 75번째 줄: | 75번째 줄: | ||
function (e) { | function (e) { | ||
if (e.target.classList && e.target.classList.contains('mwe-popups')) { | if (e.target.classList && e.target.classList.contains('mwe-popups')) { | ||
requestAnimationFrame(function () { | requestAnimationFrame(function () { | ||
var bodyLeft = document.body.getBoundingClientRect().left; | var bodyLeft = document.body.getBoundingClientRect().left; | ||
var left = parseInt(window.getComputedStyle(e.target).left); | var left = parseInt(window.getComputedStyle(e.target).left); | ||
e.target.style.left = left - bodyLeft + 'px'; | e.target.style.left = left - bodyLeft + 'px'; | ||