Loading position fixes.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Dec 2009 18:06:53 +0000 (11:06 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Dec 2009 19:45:59 +0000 (12:45 -0700)
Account for scrollable offsets to positioning.
Remove document wide cursor setting, since it doesn't really work.

imp/js/DimpCore.js

index 10ef75b..97c9152 100644 (file)
@@ -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)