]> source.dussan.org Git - gwtquery.git/commitdiff
fix for 2.2.0
authorManolo Carrasco <manolo@apache.org>
Mon, 2 May 2011 14:32:12 +0000 (14:32 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 2 May 2011 14:32:12 +0000 (14:32 +0000)
gwtquery-core/src/main/java/com/google/gwt/user/client/ui/GqUi.java

index 834d2fb230d752ae236f0612520fb73d1aec866b..20af3c23bb5f5a1b73c644d0dbe7dbd939011ea2 100644 (file)
@@ -39,7 +39,8 @@ public class GqUi {
         widget.onAttach();
       } else if (parentWidget instanceof HTMLPanel) {
         ((HTMLPanel) parentWidget).add(widget,
-            widget.getElement().getParentElement());
+            widget.getElement().getParentElement()
+            .<com.google.gwt.user.client.Element>cast());
       } else {
         throw new RuntimeException(
             "No HTMLPanel available to attach the widget.");