From: Michael M Slusarz Date: Wed, 16 Dec 2009 18:06:53 +0000 (-0700) Subject: Loading position fixes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d9b273ed51b6789c53f6bc5e966650b2b218618a;p=horde.git Loading position fixes. Account for scrollable offsets to positioning. Remove document wide cursor setting, since it doesn't really work. --- diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index 10ef75b7b..97c915238 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -285,15 +285,14 @@ var DimpCore = { loadingImg: function(elt, id, show) { var c; + elt = $(elt); if (show) { - $(elt).clonePosition(id, { setLeft: false, setTop: true, setHeight: false, setWidth: false }).show(); - c = 'progress'; + c = $(id).cumulativeScrollOffset(); + elt.clonePosition(id, { offsetLeft: c[0], offsetTop: c[1], setHeight: false, setWidth: false }).show(); } else { - $(elt).fade({ duration: 0.2 }); - c = 'default'; + elt.fade({ duration: 0.2 }); } - $(document.body).setStyle({ cursor: c }); }, toggleButtons: function(elts, disable)