From 626d8981096123dcb9dd9df5d5a68465279180ba Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 11 Oct 2011 08:20:51 +0000 Subject: [PATCH] #7755 Debug window "highlight component" does not work with sub windows svn changeset:21676/svn branch:6.7 --- src/com/vaadin/terminal/gwt/client/VDebugConsole.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java index 6384dce3f3..2eddd51008 100755 --- a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java +++ b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java @@ -43,6 +43,7 @@ import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Panel; +import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; @@ -91,6 +92,10 @@ public class VDebugConsole extends VOverlay implements Console { .getRunningApplications()) { Paintable paintable = Util.getPaintableForElement(a, a.getView(), eventTarget); + if (paintable == null) { + paintable = Util.getPaintableForElement(a, + RootPanel.get(), eventTarget); + } if (paintable != null) { String pid = a.getPid(paintable); VUIDLBrowser.highlight(paintable); @@ -116,6 +121,11 @@ public class VDebugConsole extends VOverlay implements Console { .getRunningApplications()) { Paintable paintable = Util.getPaintableForElement(a, a.getView(), eventTarget); + if (paintable == null) { + paintable = Util.getPaintableForElement(a, + RootPanel.get(), eventTarget); + } + if (paintable != null) { a.highlightComponent(paintable); return; -- 2.39.5