Fix positioning of message loading image
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Apr 2010 15:59:58 +0000 (09:59 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Apr 2010 20:43:52 +0000 (14:43 -0600)
Not sure if this is due to recent prototypejs changes. But it does fix
things.

imp/js/DimpBase.js
imp/js/DimpCore.js

index 2861ae5..db2056f 100644 (file)
@@ -2884,7 +2884,7 @@ var DimpBase = {
 
     loadingImg: function(id, show)
     {
-        DimpCore.loadingImg(id + 'Loading', id == 'viewport' ? 'msgSplitPane' : 'previewPane', show, id == 'msg' ? $('previewPane').scrollTop : 0);
+        DimpCore.loadingImg(id + 'Loading', id == 'viewport' ? 'msgSplitPane' : 'previewPane', show);
     },
 
     // p = (element) Parent element
index a1cf4de..2708451 100644 (file)
@@ -306,12 +306,12 @@ var DimpCore = {
         }
     },
 
-    loadingImg: function(elt, id, show, offsetTop)
+    loadingImg: function(elt, id, show)
     {
         elt = $(elt);
 
         if (show) {
-            elt.clonePosition(id, { offsetTop: offsetTop || 0, setHeight: false, setLeft: false, setWidth: false }).show();
+            elt.clonePosition(id, { setHeight: false, setLeft: false, setWidth: false }).show();
         } else {
             elt.fade({ duration: 0.2 });
         }