1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    12
    Vote Rating
    0
    sjoshi is on a distinguished road

      0  

    Default Getting Error "Layout run failed"

    Getting Error "Layout run failed"


    I'm unable to load child containers (main panel loads fine) and get this error. I ran the page thru PageAnalyzer but not sure what to check.

    PageAnalyzer.jpg

    Any pointers are appreciated.

    Sunit

  2. #2
    Sencha User
    Join Date
    Mar 2013
    Posts
    12
    Vote Rating
    0
    sjoshi is on a distinguished road

      0  

    Default Found the problem

    Found the problem


    I found the problem and it was in my viewport.js. What I was missing was the layout: 'fit' line for the panel.

    Still Sencha needs to clean this up and output more descriptive message on where/which component the problem is. For first time users like me, this can be frustrating & demotivating to continue to use the framework.


    Code:
    Ext.define('MyApp.view.Viewport',{    extend      : 'Ext.container.Viewport',
        requires	: [
    		'Ext.tab.Panel',
    		'Ext.window.MessageBox'
        ],
        
        layout		: 'fit',
    
    
        initComponent   : function(){
            var me = this;
            
            me.items = [{
    			xtype : 'panel',
    			layout: 'fit', //I was missing this line
    dockedItems : [{
    rgds
    Sunit

Tags for this Thread