zindex start on qwindow

7 views
Skip to first unread message

andy

unread,
Jun 10, 2010, 5:49:26 PM6/10/10
to Qutensil
is it possible to have the ability to set the initial z-index for the
qwindow system or have a default that can be overriden which all other
values are calculated from as this would be helpful when integrating
other widgets which require zindex changes so they appear above
qwindow as the 9996 etc are quite high start numbers...


cheers

andy

wonderingwout

unread,
Jun 11, 2010, 2:57:06 AM6/11/10
to Qutensil
Hi Andy,

You can easily change the default z-index for all Q.Window instances
by overwriting the css.
Just add this code after initializing Q:

this.addCss("div.q-window", "z-index:10 !important;");

For the subclasses Q.Alert, Q.Confirm and Q.Prompt you might want to
add this as well:

this.addCss("div.q-window-blocking", "z-index:10 !important;");

In fact you can control a lot through the dynamic stylesheet system in
Q.

Greeting,
Wout

wonderingwout

unread,
Jun 11, 2010, 3:04:03 AM6/11/10
to Qutensil
Sorry, made a mistake.
It's:

Q.addCss("div.q-window", "z-index:10 !important;");

and:

Q.addCss("div.q-window-blocking", "z-index:10 !important;");

Wout
Reply all
Reply to author
Forward
0 new messages