1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    9
    Answers
    1
    Vote Rating
    0
    SargTeX is on a distinguished road

      0  

    Default Unanswered: The base layout for a DataView must always be a Fit Layout

    Unanswered: The base layout for a DataView must always be a Fit Layout


    Hey.

    What does this error message mean - and especially, how do I solve it?
    I wasn't able to find anything related to this error message in the internet.

    And I am using an (in my opinion) normal list:

    Code:
    Ext.define('Megatherium.view.AccountList', {    extend: 'Ext.List',
        alias: 'widget.accountlistview',
        
        config: {
            itemId: 'accountList',
            store: 'accountStore',
            itemTpl: '{alias}'
        }
        
    });
    I've tryed adding some of the following things to the config, but it didn't work:
    Code:
    fullscreen: true
    Code:
    layout: {
        type: 'fit'
    }

    May anybody please help me?

    Best greetings and thank you very much!,
    SargTeX aka Martin

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Answers
    3354
    Vote Rating
    746
    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


    You shouldn't give List or DataView a layout. Byt the parent of the List or DataView needs to be something that can manage the size like Fit or Card can do, just depends on what you are trying to do.
    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
    Oct 2011
    Posts
    9
    Answers
    1
    Vote Rating
    0
    SargTeX is on a distinguished road

      0  

    Default


    Yeah, it's just... I am not giving the list any layout Oo

    Look at my code:

    Code:
    Ext.define('Megatherium.view.AccountList', {
       extend: 'Ext.List',
       alias: 'widget.accountlistview',
       config: {
          itemId: 'accountList',
          store: 'accountStore',
          itemTpl: '{alias}'
       }
    });
    I don't get it... I didn't specify a layout in ANY way OoOo

Thread Participants: 1

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