Changeset 5084


Ignore:
Timestamp:
Aug 28, 2009, 1:50:03 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1363: IE8 problems

Fixes a problem with positioning popup windows relative their parent window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.13-stable/www/include/scripts/main.js

    r5082 r5084  
    6363    if (wLeft == undefined) wLeft = 0;
    6464 
    65     var wHeight = window.innerHeight;
    66     if (wHeight == undefined) wHeight = document.body.clientHeight;
    67     if (wHeight == undefined) wHeight = screen.height;
    68  
    69     var wWidth = window.innerWidth;
    70     if (wWidth == undefined) wWidth = document.body.clientWidth;
    71     if (wWidth == undefined) wWidth = screen.width;
    72  
     65    var wHeight = this.getWindowHeight();
     66    var wWidth = this.getWindowWidth();
     67   
    7368    var top = Math.ceil(wTop+(wHeight-height) / 2);
    7469    var left = Math.ceil(wLeft+(wWidth-width) / 2);
Note: See TracChangeset for help on using the changeset viewer.