Free some elements from modality

My application has modal dialogs in it, as well as a feedback widget that always sticks out from the side of the page. I want users to be able to click on the feedback widget without canceling the modal dialog. Essentially, I would like to free the feedback widget from the modal rules of the application.

What is the best way to achieve this? I am using GWT 2.3, and I am happy to deploy any layer of abstraction that I need.

+3
source share
2 answers

Modal pop-ups do not actually behave well in GWT; what why setGlassEnabledwas added. If you use setGlassEnabled, you can just set a higher one z-indexfor any element that you want to display on top of the glass panel, it's just CSS.

+1
source

Looking at the source PopupPanel, it seems that adding a feedback widget as an automatic hide partner will do what you want:

Widget feedback;
DialogBox modal = new DialogBox(false, true);
modal.addAutoHidePartner(feedback.getElement());
modal.show();
+1
source

All Articles