Bug 655

Summary: [Chameleon - Core] center popups
Product: Chameleon Reporter: Bart van den Eijnden <bartvde@osgis.nl>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: NEW    
Severity: enhancement    
Priority: P2    
Version: 1.99   
Target Milestone: FUTURE   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description From 2004-08-31 02:24:31
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;
------- Comment #1 From 2004-08-31 13:48:38 -------
I can't think of a good reason not to do this.  Please go ahead.
------- Comment #2 From 2004-10-21 13:29:42 -------
Changed target to FUTURE.