-
14 Mar 2012 12:00 AM #1
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:
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...??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');
-
Best Answer Posted by mitchellsimoens
add modal and hideOnMaskTap to true and it should be able to be closable via tapping outside.
-
14 Mar 2012 9:02 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Mar 2012 12:02 AM #3


Reply With Quote