1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    36
    Answers
    3
    Vote Rating
    2
    bumpy is on a distinguished road

      1  

    Default Unanswered: Setting scrollable: false on list doesn't work

    Unanswered: Setting scrollable: false on list doesn't work


    I'm using 2.1.0 RC2.

    I think there's a bug in this version, which makes it impossible to set scrollable: false on lists.
    As a result, lists can't be nested in panels with vbox layout anymore, unless I specify a fixed height or set the flex property, which I don't want to do.
    For an example, the following code worked for me in 2.0.1 (The list got the height it needed, and below it was the button) but doesn't work now.

    Code:
    Ext.define('TEST.view.test', {
    
    
    	extend: 'Ext.Panel',
    	config: {
    		layout : 'fit',
    		items: [
    			{
    				 xtype: 'titlebar',
    				 title: 'title',
    				 docked: 'top'
    			},
    			{
    				 xtype: 'panel',
    				 layout: 'vbox',
    				 scrollable: true,
    				 items: [
    					{
    						xtype: 'list',
    						store: 'MyStore',
    						grouped: true,
    						itemTpl: Ext.create('Ext.XTemplate',
    							'<div>{name}</div>'
    						),
    						scrollable: false
    					},
    					{
    						xtype: 'button',
    						text: 'press me'
    					}
    				]
    			}
    
    
    		]	
    	}
    });
    I'll be very happy to find a solution for this, even a temporary one.
    Thanks

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    36
    Answers
    3
    Vote Rating
    2
    bumpy is on a distinguished road

      0  

    Default


    Anyone?

    It's very important to me.

  3. #3

  4. #4
    Sencha User
    Join Date
    Aug 2012
    Posts
    36
    Answers
    3
    Vote Rating
    2
    bumpy is on a distinguished road

      0  

    Default


    Thanks jweber,

    So frustrating!
    I guess I'll have to dig in the CSS and try to find the differences between List and DataView.

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    17
    Vote Rating
    0
    zwilson is on a distinguished road

      0  

    Default Same issue here

    Same issue here


    This bug had me baffled for a bit today. Thanks for finding it. Using the DataView helped me hold over until this is fixed.

Thread Participants: 2

Tags for this Thread