From a367533adc77cf8835dd0faec2b6006f7b1bab1a Mon Sep 17 00:00:00 2001 From: nao-pon Date: Thu, 28 Feb 2013 09:34:27 +0900 Subject: [PATCH] [plugin:attach] fix drop area position when page scrolling --- xoops_trust_path/modules/xpwiki/plugin/attach.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xoops_trust_path/modules/xpwiki/plugin/attach.inc.php b/xoops_trust_path/modules/xpwiki/plugin/attach.inc.php index 9eaedcab..a6ff7d97 100644 --- a/xoops_trust_path/modules/xpwiki/plugin/attach.inc.php +++ b/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();