Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    20
    Vote Rating
    0
    Martin Hujer is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.