[Chameleon-dev] [Bug 655] New: center popups

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Tue Aug 31 02:24:37 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=655

           Summary: center popups
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


I would like to propose a change to Popup.php in which all the popup windows 
are centered on the user's screen. This would involve a little bit of 
javascript and a change to the window.open function to include the top and left 
parameters. Question is where the general parameters (in my case w and h) 
should be stored, as we don't want to repeat them for every popup.

var w = 480, h = 340;
if (document.all || document.layers) 
{
   w = screen.availWidth;
   h = screen.availHeight;
}
		
var popW = 990, popH = 655;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list