1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default Dataview repaint issue

    Dataview repaint issue


    Hi,

    I have encountered a situation after upgrading to the 2.1.0b3 with a List component in my application.

    See the before and after screenshots attached.

    I have a Map panel which is 'bound' to the same store as the Locations list

    When I click the refresh button in the top toolbar when viewing the map screen, markers on the map change position (if new data is available). Likewise the Locations list rows update and re-sorts. When switching back to the Locations lists from the Map panel, I end up with the horrible looking rows as per the attached 'after' image.

    This doesn't happen when viewing the list and doing a refresh, it updates and re-sorts and displays as expected.

    Is this something to do with the list view no longer being in the viewport as an active item when viewing the Map and not handling the updates\store sort properly in the DOM structure?

    In case it's relevant, here is the code for the Locations list:

    Code:
    Ext.define('PinpointersTouch.view.UnitList', {
        extend: 'Ext.dataview.List',
        xtype: 'unitslist',
        
        config: {
            emptyText: 'There are no vehicles in your tracking list.',
            loadingText: false,
            itemTpl: new Ext.XTemplate(
                    '<ul id="unitList">',
                        '<tpl for=".">',
                            '<li>',
                                '<table width="100%" cellspacing="0">',
                                    '<tr>',
                                        '<td style="width:24px; text-align:center;"><img src="resources/images/{[values.InJourney == true ? "green_vehicle_icon": "red_vehicle_icon"]}.png"/></td>',
                                        '<td valign="top">&nbsp;{UnitName}</td>',
                                    '</tr>',
                                '</table>',
                                '<div class="journeyCurrentLocation">{Location}</div>',
                                '<span class="journeyDetail">{Subtitle}</span>',
                                '<div class="journeyLastReportedTimestamp"><b>Last Reported at:</b> {EventDTDisplay}</div>',
                            '</li>',
                        '</tpl>',
                    '</ul>'),
            store: 'CurrentGrid',
            items: [{
                xtype: 'toolbar',
                docked: 'bottom',
                ui: 'light',
                items: [{
                    xtype: 'label',
                    html: 'Show:',
                    style: 'color:white;'
                },{
                    xtype: 'selectfield',
                    store: 'TrackingListWithShowAll',
                    displayField: 'UnitName',
                    valueField: 'UntID',
                    itemId: 'selectVehicle'
                }]
            }]      
        }
    
    
    });
    Attached Images

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    I have just upgraded to the 2.1.0.RC1 and I am still seeing the same behaviour.

    I am wondering if for now I should prevent the list component responding to the store load event if the list is not currently 'active' and when it becomes activated refresh the list?

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    That's the main issue that made me rollback to 2.0.3, I do confirm this issue. You should create a bug.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Can anyone from Sencha please comment?

    I have tested this on desktop Safari and Chrome, mobile Safari on iOS6 and the Android stock browser (gingerbread) all with the same results.

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    118
    Vote Rating
    9
    Bunchofstring will become famous soon enough

      0  

    Default


    Your issue seems related to a recent bug fix in RC1. From the release notes:
    "[TOUCH-3486] Fixed an issue where itemHeights would be incorrect if the list was refreshed or updated while the list was hidden"

  6. #6
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Hmm ok, so seems this hasn't been fixed, unless its the way in which I have my tab panel setup or something up with my List definition.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi