Results 1 to 3 of 3

Thread: can't close popup

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    58
    Vote Rating
    1
      0  

    Default Answered: can't close popup

    This is probably more of a ST2 issue than an actual Designer2 issue. But i'm working in Designer2 so i'm posting this question here.

    I'm creating a popup as follows:

    Code:
    var popup = new Ext.Panel({
        floating: true,
        modal: true,
        centered: true,
        width: 640,
        height: 512,
        items: [
        {
            xtype: 'image',
            centered: true,
            width: 628,
            height: 500,
            src: record.data.ImageSrc
        }
        ]
    });
    
    popup.showBy(Ext.getCmp('View1'), 'cc-cc');
    This shows the popup, but it's not closing it when i click outside of the popup. I thought that was default behaviour? Anyone any idea how to fix this...??

  2. add modal and hideOnMaskTap to true and it should be able to be closable via tapping outside.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    add modal and hideOnMaskTap to true and it should be able to be closable via tapping outside.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    58
    Vote Rating
    1
      0  

    Default

    Thanks, that did the trick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •