neo09 / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

PopupViewImpl will trigger onLoad() / onAttach() twice for widgets inside it #197

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a PopupViewImpl which contains a custom widget
2. For custom widget overwrite onAttach() with 
   public void onAttach() {
        System.out.println("onattach1");
        super.onAttach();
    }

3. Notice  "onattach1" twice in console when activating Popup.

Please provide any additional information below.

PresenterWidget has
public final void addToPopupSlot(
...
    // Center if desired
    if (center) {
      popupView.center(); //it's called here once
    }

    // Display the popup content
    if (isVisible()) {
      popupView.show(); //it's called here once
    }
...
}

This is my use case 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ad723487d
95883b6/d75ee826219c7bd2#d75ee826219c7bd2

Original issue reported on code.google.com by marius.a...@gmail.com on 9 Sep 2010 at 10:32

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 9 Sep 2010 at 10:57

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Bumping to 0.6, preparing release 0.5.

Original comment by philippe.beaudoin on 25 Jan 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Bumping to 0.7, preparing release 0.6.

Original comment by philippe.beaudoin on 6 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 1 Feb 2012 at 6:52

GoogleCodeExporter commented 9 years ago
https://github.com/ArcBees/GWTP/issues/38

Original comment by vincent....@arcbees.com on 27 Nov 2012 at 8:33