[Project_owners] topmost window/dialog?

Eric H. Jung grimholtz at yahoo.com
Sun Mar 26 11:56:38 EST 2006


Thanks, HJ.

Do you think there's a way to change the zlevel dynamically at runtime from alwaysRaised
(zlevel=6) to 5? I tried this:

1. window.openDialog() when the chrome URL contains: <dialog id="mydialog" zlevel="6" ... />
2. document.getElementById("mydialog").setAttribute("zlevel", 5);

also tried "5" (string, not int), but the window remains "alwaysRaised". Calling
getAttribute("zlevel") does return 5. It's as if the dialog is out-of-date, not being
repainted/refreshed from the XUL DOM.


--- HJ <bugs4hj at netscape.net> wrote:

> Eric H. Jung wrote:
> > Thanks for the reply. In FF 1.5.0.1, <window zlevel="6"> works but the following doesn't when
> > zlevel isn't specified:
> > 
> > window.openDialog("chrome://passwdmaker/chrome/accountsettings.xul", "",
> >   "chrome, dialog, modal, alwaysRaised, resizable=yes", params).focus();
> > 
> > ...also tried "alwaysRaised=yes".
> > 
> > So assuming I go forward with <window zlevel="6">, what is the normal zlevel?
> 
> 5 -> nsIXULWindow.idl
> 
> /HJ
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



More information about the Project_owners mailing list