1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    58
    Vote Rating
    0
    vivendi is on a distinguished road

      0  

    Default Answered: can't close popup

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Answers
    3490
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    add modal and hideOnMaskTap to true and it should be able to be closable via tapping outside.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    58
    Vote Rating
    0
    vivendi is on a distinguished road

      0  

    Default


    Thanks, that did the trick

Thread Participants: 1