From d9b273ed51b6789c53f6bc5e966650b2b218618a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 16 Dec 2009 11:06:53 -0700 Subject: [PATCH] Loading position fixes. Account for scrollable offsets to positioning. Remove document wide cursor setting, since it doesn't really work. --- imp/js/DimpCore.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) -- 2.11.0