-
16 Jan 2012 8:43 AM #1
Unanswered: Dropdown in floating panel
Unanswered: Dropdown in floating panel
I have a floating panel that pops up on button click. in there i have a select field with >30 options. however when i go to scroll through the options it closes the floating window. is there a way to prevent floating window to close until you click like an X or something? just need some way to be able to scroll without floating panel closing.
-
16 Jan 2012 11:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
You will need to set hideOnMaskTap to false and likely have a close button or some way to handle closing the floating panel yourself.
Code:new Ext.Panel({ floating : true, centered : true, width : 400, height : 400, hideOnMaskTap : false, items : [ { xtype : 'selectfield', label : 'Select', options : [ { text : 'First Option', value : 'first' }, { text : 'Second Option', value : 'second' }, { text : 'Third Option', value : 'third' } ] } ] }).show();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.


Reply With Quote