Browse Source

Use getChildComponents in PopupView instead of getChildren (#13503)

Change-Id: Ifd155376804e2403c55a115186df2b2c1c673334
tags/7.1.15
Denis Anisimov 10 years ago
parent
commit
b0a3c521c2
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java

+ 2
- 4
client/src/com/vaadin/client/ui/popupview/PopupViewConnector.java View File

@@ -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…
Cancel
Save