Bug 655 - [Chameleon - Core] center popups
: [Chameleon - Core] center popups
Status: NEW
: Chameleon
Core
: 1.99
: PC Windows XP
: P2 enhancement
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-31 02:24 by
Modified: 2004-10-21 13:29 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


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.