-
15 Mar 2013 9:44 AM #1
List in ActionSheet is not visible
List in ActionSheet is not visible
REQUIRED INFORMATION
Ext version tested:- Sencha 2.2.0b1
Browser versions tested against:- Chrome 25
Description:- When I add a list into actionsheet, it is not visible
The result that was expected:- List will be visible
The result that occurs instead:- List is not visible
Test Case:
Code:var list = Ext.create('Ext.List', { itemTpl: '{title}', //style: 'height: 300px;', //Hotfix data: [ { title: 'Item 1' }, { title: 'Item 2' }, { title: 'Item 3' }, { title: 'Item 4' } ] }); var actionSheet = Ext.create('Ext.ActionSheet', { items: [ { text: 'Delete draft', ui : 'decline' }, list, { text: 'Save draft' }, { text: 'Cancel', ui : 'confirm' } ] }); Ext.Viewport.add(actionSheet); actionSheet.show();
HELPFUL INFORMATION
Screenshot or Video:
List without fixed height:
list-hidden.png
List after setting fixed height
list-shown.png
Possible fix:- Add a fixed height to the list
Additional CSS used:- only default base.css and wp.css
-
15 Mar 2013 12:44 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
This is not a bug, the list needs a height either via setting it on the list or via it's parent's layout manager.
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.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote