From f8c4f9916526a6ffae4b5fc67b601cd36ca064be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Thu, 23 May 2013 12:59:14 +0300 Subject: [PATCH] Prevent spurious "Could not determine ApplicationConnection" error when using the debug window Change-Id: I3b5a8ac4f33c7e8828e34c46056b8ecd6c05a436 --- .../vaadin/client/debug/internal/VDebugWindow.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/src/com/vaadin/client/debug/internal/VDebugWindow.java b/client/src/com/vaadin/client/debug/internal/VDebugWindow.java index 5aab95616a..6c05658fe1 100644 --- a/client/src/com/vaadin/client/debug/internal/VDebugWindow.java +++ b/client/src/com/vaadin/client/debug/internal/VDebugWindow.java @@ -45,6 +45,7 @@ import com.google.gwt.user.client.Window; import com.google.gwt.user.client.Window.Location; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.FlowPanel; +import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.client.ApplicationConnection; @@ -714,6 +715,18 @@ public final class VDebugWindow extends VOverlay { } } + /** + * Gets the container element for this window. The debug window is always + * global to the document and not related to any + * {@link ApplicationConnection} in particular. + * + * @return The global overlay container element. + */ + @Override + public com.google.gwt.user.client.Element getOverlayContainer() { + return RootPanel.get().getElement(); + } + /* * Inner classes */ -- 2.39.5