MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 69: | Line 69: | ||
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 = e. | e.target.style.left = e.pageX + 'px'; | ||
e.target.style.top = e.pageY + 'px'; | e.target.style.top = e.pageY + 'px'; | ||
}); | }); | ||