From: Michael M Slusarz Date: Fri, 23 Apr 2010 15:59:58 +0000 (-0600) Subject: Fix positioning of message loading image X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2112e9d83d89ba17f7e1b3f43ce9b50eb842caa2;p=horde.git Fix positioning of message loading image Not sure if this is due to recent prototypejs changes. But it does fix things. --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 2861ae55a..db2056fe0 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -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 diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index a1cf4de16..270845157 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -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 }); }