Ignore:
Timestamp:
02/01/08 22:44:49 (12 years ago)
Author:
ray
Message:

copied changes from branch 0.95_stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r954 r957  
    6666        window.resizeBy(0, page.y - dim.y + 5); 
    6767 
     68        dim = Xinha.viewportSize(window); 
     69         
    6870        if (!Xinha.is_ie) 
    6971        { 
    70           var x = opener.screenX + (opener.outerWidth - w) / 2; 
    71           var y = opener.screenY + (opener.outerHeight -h) / 2; 
     72          var x = opener.screenX + (opener.outerWidth - dim.x) / 2; 
     73          var y = opener.screenY + (opener.outerHeight - dim.x) / 2; 
    7274        } 
    7375        else 
    7476        {//IE does not have window.outer... , so center it on the screen at least 
    75           var x =  (self.screen.availWidth -w) / 2; 
    76           var y =  (self.screen.availHeight - h) / 2;    
     77          var x =  (self.screen.availWidth - dim.x) / 2; 
     78          var y =  (self.screen.availHeight - dim.y) / 2;        
    7779        } 
    7880        window.moveTo(x,y); 
Note: See TracChangeset for help on using the changeset viewer.