new DialogBox is shown behind the old DialogBox

33 views
Skip to first unread message

tong123123

unread,
Jan 23, 2013, 1:40:30 AM1/23/13
to google-we...@googlegroups.com
According to popuppanel (and so DialogBox) api,
A panel that can "pop up" over other widgets. It overlays the browser's client area (and any previously-created popups).
but I found that the new DialogBox is underneath the origin DialogBox, why?

for the original dialogbox, I set
original.setGlassEnabled(true);
original.setAnimationEnabled(true);
original.center();

the original dialogbox has a button to call the new DialogBox(callee), I set
callee.setModal(false);
callee.setGlassEnabled(true);
callee.setAnimationEnbaled(true);
callee.center();

the result is the new DialogBox show underneath the old DialogBox!!
dialogbox.png

tong123123

unread,
Jan 23, 2013, 1:46:28 AM1/23/13
to google-we...@googlegroups.com
I found the cause of the problem, but now I need to find a method to set the z-index of the "glass" of the new DialogBox.
the old dialogbox has set its z-index.
so I make the new dialogbox has z-index larger than the old one.
but, the glass associated with the new dialogbox is still behind the old dialogbox.

the method to set the dialogbox z-index is
callee.getElement().getStyle().setZIndex(int);

but how to get its associated glass and set its z-index?

I must set the old dialogbox z-index because after the application is plugged in portal, the portal will hide the top portion of gwt dialogobox.

tong123123

unread,
Jan 23, 2013, 2:13:13 AM1/23/13
to google-we...@googlegroups.com
solved. use getClassElement();

Reply all
Reply to author
Forward
0 new messages