Selaa lähdekoodia

Use getChildComponents in PopupView instead of getChildren (#13503)

Change-Id: Ifd155376804e2403c55a115186df2b2c1c673334
tags/7.1.15
Denis Anisimov 10 vuotta sitten
vanhempi
commit
b0a3c521c2

+ 2
- 4
client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java Näytä tiedosto

@@ -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

Loading…
Peruuta
Tallenna