Skip to content
Permalink
Browse files

[plugin:attach] fix drop area position when page scrolling

  • Loading branch information...
nao-pon committed Feb 28, 2013
1 parent 6b06b7e commit a367533adc77cf8835dd0faec2b6006f7b1bab1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/xpwiki/plugin/attach.inc.php
@@ -1214,7 +1214,7 @@ function (){
if (dropArea.style.display != 'none') dropArea.style.display = 'none';
});
qq.attach(document, 'dragover', function(e){
dropArea.style.top = Math.max(0, Event.pointerY(e) - dropArea.getHeight() / 2) + 'px';
dropArea.style.top = Math.max(0, Event.pointerY(e) - (window.scrollY || window.pageYOffset) - dropArea.getHeight() / 2) + 'px';
listArea.style.top = dropArea.style.top;
});
var imgPrefetch = new Image();

0 comments on commit a367533

Please sign in to comment.
You can’t perform that action at this time.