diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-12 09:39:02 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-11-12 09:39:02 +0000 |
commit | ef3e77f84ece173ebd34c29fbbcf11f499fe80ef (patch) | |
tree | 633afc0e22d5ea5965066c8d45242800ea064c2c /client | |
parent | 85d3cc78842738fe229c17b96f5d5b0d0140a4f2 (diff) | |
parent | 82a33d9a5ad36f102d2f29c1a82368bce02f1756 (diff) | |
download | vaadin-framework-ef3e77f84ece173ebd34c29fbbcf11f499fe80ef.tar.gz vaadin-framework-ef3e77f84ece173ebd34c29fbbcf11f499fe80ef.zip |
Merge "Fixed absolute layout class cast exception #10155"
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java index 26ee4409fb..0cfd4fb8e5 100644 --- a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java +++ b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java @@ -80,7 +80,7 @@ public class VAbsoluteLayout extends ComplexPanel { wrapper.destroy(); return super.remove(wrapper); } - return false; + return super.remove(w); } /** @@ -246,9 +246,11 @@ public class VAbsoluteLayout extends ComplexPanel { */ protected AbsoluteWrapper getChildWrapper(Widget child) { for (Widget w : getChildren()) { - AbsoluteWrapper wrapper = (AbsoluteWrapper) w; - if (wrapper.getWidget() == child) { - return wrapper; + if (w instanceof AbsoluteWrapper) { + AbsoluteWrapper wrapper = (AbsoluteWrapper) w; + if (wrapper.getWidget() == child) { + return wrapper; + } } } return null; |