Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    hengly is on a distinguished road

      0  

    Default if pin header of the grouped list view works on ST 2.0?

    if pin header of the grouped list view works on ST 2.0?


    Hi guys,

    The grouped list view's pin header feel confused.
    bug.jpgfine.jpg
    https://github.com/nelstrom/Sencha-Touch-list-view-demo works fine.please see the screenshot above.

    Code:
    Ext.define('Contact', {
        extend: 'Ext.data.Model',
        fields: ['firstName', 'lastName']
    });
    
    
    Ext.application({ 
        name: "ListDemo",
    
    
        launch: function(){
            var store = Ext.create('Ext.data.JsonStore', {
                model: 'Contact',
                sorters: 'lastName',
    
    
                getGroupString: function(record) {
                   return record.get('lastName')[0];
                },
                data: [
                    {firstName: 'Tommy',   lastName: 'Maintz'},
                    {firstName: 'Rob',     lastName: 'Dougan'},
                    {firstName: 'Ed',      lastName: 'Spencer'},
                    {firstName: 'Jamie',   lastName: 'Avins'},
                    {firstName: 'Aaron',   lastName: 'Conran'},
                    {firstName: 'Dave',    lastName: 'Kaneda'},
                    {firstName: 'Jacky',   lastName: 'Nguyen'},
                    {firstName: 'Abraham', lastName: 'Elias'},
                    {firstName: 'Jay',     lastName: 'Robinson'},
                    {firstName: 'Nigel',   lastName: 'White'},
                    {firstName: 'Don',     lastName: 'Griffin'},
                    {firstName: 'Nico',    lastName: 'Ferrero'},
                    {firstName: 'Nicolas', lastName: 'Belmonte'},
                    {firstName: 'Jay',     lastName: 'Robinson'},
                    {firstName: 'Nigel',   lastName: 'White'},
                    {firstName: 'Don',     lastName: 'Griffin'},
                    {firstName: 'Nico',    lastName: 'Ferrero'},
                    {firstName: 'Nicolas', lastName: 'Belmonte'},
                    {firstName: 'Jason',   lastName: 'Johnston'}
                ]
            });
            
           var listPanel = Ext.create('Ext.List', {
                store: store,
                allowDeselect: false,
                itemTpl: '<div class="contact">{firstName} {lastName}</div>',
                onItemDisclosure: function(record, btn, index) {
                    console.log('in');
                },
                grouped: true
                //indexBar: true
            });
            
            Ext.Viewport.add(listPanel);
    
    
      }
    });

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    hengly is on a distinguished road

      0  

    Default


    oh,The problem is caused by using the resources/css-debug/sencha-touch.css instead of the resources/css/sencha-touch.css.
    Not a bug.

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    We have an open issue on the css-debug version not being updated in the release. Sorry for the confusion.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1