1. #1
    Ext User
    Join Date
    Jun 2008
    Location
    Williamsburg, VA
    Posts
    10
    Vote Rating
    0
    adam.schwartz is on a distinguished road

      0  

    Default [FIXED] Popup hides when click occurs on Widget in the Popup, not the Popup body

    [FIXED] Popup hides when click occurs on Widget in the Popup, not the Popup body


    I have a Popup with lots of Widgets inside of it, including DataLists. When I select an item in a data list, the Popup autohides.

    Latest ExtGWT from SVN
    Both hosted and Web mode
    FF3 on Ubuntu Hardy

    Some sample code
    Code:
      DataList list = new DataList();
      list.add( new DataListItem("Test 1") );
      list.add( new DataListItem("Test 2") );
      LayoutContainer inner = new LayoutContainer();
      inner.add( list );
    
      Popup navPopup = new Popup();
      navPopup.setLayout(new FitLayout());
      navPopup.add( inner );
    - I would guess the BaseEventPreview in the Popup class isn't doing the right thing on line 88, but it may just be my case. Instead of

    Code:
      if (ce.getTarget() == XDOM.getBody()) {
    ... using the following bit cured my issues ...

    Code:
      if (DOM.isOrHasChild(Popup.this.getElement(), ce.getTarget()) ) {
    Of course, I don't know if this is the best way to solve it or not, but thought I'd bring it up.

    Cheers,
    Adam

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi