Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3667 in a recent build.
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    18
    Vote Rating
    1
    bumpy is on a distinguished road

      0  

    Default Grouped list's nested items docked to the top are positioned incorrectly

    Grouped list's nested items docked to the top are positioned incorrectly


    REQUIRED INFORMATIONExt version tested:
    • Sencha Touch 2.1.0 RC2
    Browser versions tested against:
    • Chrome 22
    • Safari 5.1
    Description:
    • When nesting an item inside a grouped list and setting the nested item's docked and scrollDocked properties to 'top', the item is positioned incorrectly and is hidden under the first list item's group header
    Test Case:
    Code:
    Ext.define('TestModel', {
        extend : 'Ext.data.Model',
        config : {
            fields : [
                {name : 'field1'},
                {name : 'field2'},
                {name : 'field3'}
            ]
        }
    });
    
    
    var store = Ext.create('Ext.data.Store', {
        model : 'TestModel',
        data  : [
            { field1 : 'data1Field1',  field2 : 'data1Field2',  field3 : 'data1Field3'  },
            { field1 : 'data2Field1',  field2 : 'data2Field2',  field3 : 'data2Field3'  },
            { field1 : 'data3Field1',  field2 : 'data3Field2',  field3 : 'data3Field3'  },
            { field1 : 'data4Field1',  field2 : 'data4Field2',  field3 : 'data4Field3'  }
        ],
    	grouper: {
                groupFn: function(record) {
                    return record.get('field1');
                }
            }
    });
    
    
    var list = Ext.create('Ext.dataview.List', {
        store   : store,
        itemTpl : '{field1} - {field3}',
        flex    : 1,
    	grouped: true,
        items   : [
            {
                xtype       : 'textfield',
                label       : 'TestField',
                placeHolder : 'Enter the field value',
                scrollDock  : 'top',
                docked      : 'top'
            }
        ]
    });
    
    
    Ext.Viewport.add(list);
    HELPFUL INFORMATIONScreenshot or Video:Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • none
    Operating System:
    • Windows 7

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    751
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    5
    Vote Rating
    1
    dix.alex is on a distinguished road

      0  

    Default Does TOUCH-3667 fix included in any release?

    Does TOUCH-3667 fix included in any release?


    I've searched through all releases and haven't found anything about this fix.

    Also I've tested this on on ST 2.2 - it's not fixed.

    If it can't be fixed - can you give a different approach to make it look the same?

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    5
    Vote Rating
    1
    dix.alex is on a distinguished road

      0  

    Default


    Whether it's fixed or not - this is a simple fix I've found for ST 2.2:

    In touch/src/dataview/list.js of your project you should change the line 837 which is this:
    Code:
    scrollDockItem.renderElement.insertBefore(item.renderElement);
    with this code:
    Code:
    if (info.grouped) {
       scrollDockItem.renderElement.insertBefore(header.renderElement);
    } else {
       scrollDockItem.renderElement.insertBefore(item.renderElement);
    }

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar