Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DialogBox depth (z-index) in GWT

Having many GWT DialogBox'es, the first one always stays at the bottom and new ones are created on top. What I am trying to obtain is a way to bring one of such dialogs on top when it is clicked. I haven't found the GWT approach to handle depth (something related to a CSS label z-index but it lacks some documentation).

like image 1000
rubenafo Avatar asked Feb 15 '11 19:02

rubenafo


1 Answers

I think, you can use something like this:

DialogBox d=new DialogBox();
d.getElement().getStyle().setZIndex(intValue);
like image 139
Jama A. Avatar answered Oct 08 '22 18:10

Jama A.