-
13 Dec 2012 1:14 PM #1
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:
I've tryed adding some of the following things to the config, but it didn't work:Code:Ext.define('Megatherium.view.AccountList', { extend: 'Ext.List', alias: 'widget.accountlistview', config: { itemId: 'accountList', store: 'accountStore', itemTpl: '{alias}' } });
Code:fullscreen: true
Code:layout: { type: 'fit' }
May anybody please help me?
Best greetings and thank you very much!,
SargTeX aka Martin
-
15 Dec 2012 7:03 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
- Answers
- 3102
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Dec 2012 4:02 AM #3
Yeah, it's just... I am not giving the list any layout Oo
Look at my code:
I don't get it... I didn't specify a layout in ANY way OoOoCode:Ext.define('Megatherium.view.AccountList', { extend: 'Ext.List', alias: 'widget.accountlistview', config: { itemId: 'accountList', store: 'accountStore', itemTpl: '{alias}' } });


Reply With Quote