diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2013-05-23 12:59:14 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2013-05-23 10:03:45 +0000 |
commit | f8c4f9916526a6ffae4b5fc67b601cd36ca064be (patch) | |
tree | 51112e5f809cfc6f119dff4d72176bfdb0e4b618 /client | |
parent | 5b35dd9364f5cebecb3ead602e7f707c596fc1da (diff) | |
download | vaadin-framework-f8c4f9916526a6ffae4b5fc67b601cd36ca064be.tar.gz vaadin-framework-f8c4f9916526a6ffae4b5fc67b601cd36ca064be.zip |
Prevent spurious "Could not determine ApplicationConnection" error when using the debug window
Change-Id: I3b5a8ac4f33c7e8828e34c46056b8ecd6c05a436
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/debug/internal/VDebugWindow.java | 13 |
1 files changed, 13 insertions, 0 deletions
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 */ |