diff options
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/Util.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/Util.java b/src/com/vaadin/terminal/gwt/client/Util.java index 34c52357cd..bd46871902 100644 --- a/src/com/vaadin/terminal/gwt/client/Util.java +++ b/src/com/vaadin/terminal/gwt/client/Util.java @@ -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) { |