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,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar