import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.ComplexPanel;
-import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
DOM.setStyleAttribute(draggingCurtain, "zIndex", ""
+ VOverlay.Z_INDEX);
- DOM.appendChild(RootPanel.getBodyElement(), draggingCurtain);
+ DOM.appendChild(wrapper, draggingCurtain);
}
}
*/
private void hideDraggingCurtain() {
if (draggingCurtain != null) {
- DOM.removeChild(RootPanel.getBodyElement(), draggingCurtain);
+ DOM.removeChild(wrapper, draggingCurtain);
draggingCurtain = null;
}
}
} else if (vaadinModality) {
// return false when modal and outside window
final Element target = event.getTarget().cast();
+ if (DOM.getCaptureElement() != null) {
+ // Allow events when capture is set
+ return true;
+ }
if (!DOM.isOrHasChild(getElement(), target)) {
// not within the modal window, but let's see if it's in the