Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    21
    Vote Rating
    1
    brian.scott@talgov.com is an unknown quantity at this point

      0  

    Default DataView List Will Not Render Approrpiately

    DataView List Will Not Render Approrpiately


    I'm using Architect, which may be part of the problem. Anyways, here is some code.

    Code:
    Ext.define('MyApp.view.auditStubListView', {    extend: 'Ext.Container',
    
    
        config: {
            id: 'auditStubListView',
            itemId: 'auditStubListView',
            layout: {
                type: 'fit'
            },
            items: [
                {
                    xtype: 'list',
                    height: 700,
                    html: 'Below are the current audits',
                    id: 'currentAuditStubList',
                    itemId: 'currentAuditStubList',
                    style: '',
                    scrollable: true,
                    itemTpl: [
                        '<div>{startDateTime} -- {address} -- {cisCustomerName}</div>'
                    ],
                    store: 'auditStubJsonPStore',
                    itemHeight: 50,
                    variableHeights: false
                }
            ]
        }
    
    
    });
    Attached is a screenshot of how it renders in browsers; essentially all of the items in the store are being written on the same line. If I pull down on the list, I can get one of the items to pull down; there are four items that should be displaying here. onButtonTap events fire as you would expect, but always for the first item in the list.

    If I change the layout of the list from default/card/fit/vhbox/hbox the only 'change' I seem to be able to accomplish is to have nothing show up at all.

    I'm going crazy with this; there aren't very many options to toggle and I cannot get something exceedingly simple to paint. Can anyone help?

    brian
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,015
    Vote Rating
    847
    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


    What ST 2.x.x version are you using?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    21
    Vote Rating
    1
    brian.scott@talgov.com is an unknown quantity at this point

      0  

    Default


    Touch 2.1.1.

    Curiously enough, if I removed the id in config, it started rendering appropriately again. No ideas on why.