[horde] AJAX window position unreadable / too far on top in webmail-5.1.5

Steffen skhorde at smail.inf.fh-bonn-rhein-sieg.de
Fri Aug 1 13:32:51 UTC 2014


Somebody sees this, too?

After upgrading to webmail-5.1.5 (see message "Incompatbly in 
Horde_ActiveSync-2.16.11 for H5.1 (was Re: [horde] How to upgrade to 
webmail-5.1.5 with PEAR)") the AJAX windows are too far on the top. For 
instance, the "edit calendar" window is not visible at all, the "new 
event" window starts at the very top of the calender page at the half of 
the line "Status" and "Location". Anything above is hidden / not visible.

If I revert the change in /var/www/horde/js/redbox.js

setWindowPosition: function()
     {
         var win = $('RB_window'),
             d = win.getDimensions();

         /* win.setStyle({
             left: '50%',
             marginLeft: '-' + (d.width / 2) + 'px',
             marginTop: '-' + (d.height / 2) + 'px',
             position: 'absolute',
             "top": '50%'
         }); */
         v = document.viewport.getDimensions();
         win.setStyle({ width: 'auto', height: 'auto', left: ((v.width - d.width) / 2) + 'px', top: ((v.height - d.height) / 2) + 'px' });
     }

I cleared the browser cache, restarted the browser, cleared 
/var/www/horde/static and the Horde cache directory and restarted Apache.
Browsers tested: SeaMonkey v2.17.1 / Linux, Firefox 20.0 / Linux and 
SeaMonkey 2.26 / Windows.

The function in /var/www/horde/js/redbox.js of Horde 5.2 looks the same, 
but there it works - using the very same browser. The H5.2 server is using 
the same config as the H5.1 server, in fact, I forked my webmail-5.1.4 
setup to upgrade to H5.2 on one and H5.1 on another test server.

-- 
Steffen


More information about the horde mailing list