From ca73546d736dfb41d9b25a32282fff63791bffe1 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 25 Mar 2014 13:21:27 +0200 Subject: Eliminate more .v-caption leaks in AbstractOrderedLayout (#13346) Change-Id: I641be48a53c53f584c42ae4f904975f447e9075a --- .../client/ui/orderedlayout/AbstractOrderedLayoutConnector.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java b/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java index ce73627c88..d9299f2621 100644 --- a/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java +++ b/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java @@ -258,6 +258,10 @@ public abstract class AbstractOrderedLayoutConnector extends } boolean enabled = child.isEnabled(); + if (slot.hasCaption() && null == caption) { + slot.setCaptionResizeListener(null); + } + slot.setCaption(caption, iconUrlString, styles, error, showError, required, enabled); -- cgit v1.2.3