]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7755 Debug window "highlight component" does not work with sub windows
authorArtur Signell <artur.signell@itmill.com>
Tue, 11 Oct 2011 11:44:35 +0000 (11:44 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 11 Oct 2011 11:44:35 +0000 (11:44 +0000)
svn changeset:21679/svn branch:6.7

src/com/vaadin/terminal/gwt/client/Util.java

index 34c52357cdee7bd23f69797f04e5e5df40c7bb53..bd46871902735201875193e665ee91da54a125b8 100644 (file)
@@ -920,8 +920,8 @@ public class Util {
      *         does not belong to a child.
      */
     public static Paintable getPaintableForElement(
-            ApplicationConnection client, Container parent, Element element) {
-        Element rootElement = ((Widget) parent).getElement();
+            ApplicationConnection client, Widget parent, Element element) {
+        Element rootElement = parent.getElement();
         while (element != null && element != rootElement) {
             Paintable paintable = client.getPaintable(element);
             if (paintable == null) {