From: Manolo Carrasco Date: Mon, 2 May 2011 14:32:12 +0000 (+0000) Subject: fix for 2.2.0 X-Git-Tag: release-1.3.2~334 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8c4c548faff9e0bf6c84abec80cd9e1e0cf4753;p=gwtquery.git fix for 2.2.0 --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/user/client/ui/GqUi.java b/gwtquery-core/src/main/java/com/google/gwt/user/client/ui/GqUi.java index 834d2fb2..20af3c23 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/user/client/ui/GqUi.java +++ b/gwtquery-core/src/main/java/com/google/gwt/user/client/ui/GqUi.java @@ -39,7 +39,8 @@ public class GqUi { widget.onAttach(); } else if (parentWidget instanceof HTMLPanel) { ((HTMLPanel) parentWidget).add(widget, - widget.getElement().getParentElement()); + widget.getElement().getParentElement() + .cast()); } else { throw new RuntimeException( "No HTMLPanel available to attach the widget.");