From: Denis Anisimov Date: Sat, 5 Apr 2014 12:48:22 +0000 (+0300) Subject: Use getChildComponents in PopupView instead of getChildren (#13503) X-Git-Tag: 7.1.15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0a3c521c2d05826555c232928be699385cd4804;p=vaadin-framework.git Use getChildComponents in PopupView instead of getChildren (#13503) Change-Id: Ifd155376804e2403c55a115186df2b2c1c673334 --- diff --git a/client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java b/client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java index 803ab4f601..bb4f509709 100644 --- a/client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java +++ b/client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java @@ -102,11 +102,9 @@ public class PopupViewConnector extends AbstractHasComponentsConnector public void onConnectorHierarchyChange( ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) { // Render the popup if visible and show it. - if (!getChildren().isEmpty()) { + if (!getChildComponents().isEmpty()) { getWidget().preparePopup(getWidget().popup); - getWidget().popup - .setPopupConnector((ComponentConnector) getChildren() - .get(0)); + getWidget().popup.setPopupConnector(getChildComponents().get(0)); if (ComponentStateUtil.hasStyles(getState())) { final StringBuffer styleBuf = new StringBuffer(); final String primaryName = getWidget().popup