Results 1 to 3 of 3

Thread: Layout required or not

  1. #1
    Sencha Premium User
    Join Date
    Oct 2011
    Location
    Paris
    Posts
    21

    Default Answered: Layout required or not

    Hi guys,

    I setup a "classic" app which includes a component extending the Ext.container.Container with a card layout. The development version runs well, but the testing or the production versions fail to load.

    The debugging shows that the framework is not able to retreive the card layout by its alias "layout.card". The current collection of aliases "aliasToName" contains all layouts except the card layout "Ext.layout.container.Card".

    I was able to fix it by adding the layout in the requires collection of my component.

    So here are my questions: is there anything special with this layout? What is the rule to include a layout class in the requires array or not?

    Thanks for your feedback
    Philippe

  2. Hi Philippe,


    The answer to your question can have several variables to consider based on your application but the card layout is not any more/less special other than it is derived from a container/fit layouts.


    You are on the right path with requiring the Ext.layout.container.Card, the complexity of your app will determine if/when you need to require it in instance or before.


    Regards,
    Bryan

  3. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi Philippe,


    The answer to your question can have several variables to consider based on your application but the card layout is not any more/less special other than it is derived from a container/fit layouts.


    You are on the right path with requiring the Ext.layout.container.Card, the complexity of your app will determine if/when you need to require it in instance or before.


    Regards,
    Bryan

  4. #3
    Sencha Premium User
    Join Date
    Oct 2011
    Location
    Paris
    Posts
    21

    Default

    Thanks Bryan

Similar Threads

  1. Replies: 2
    Last Post: 17 Apr 2013, 12:31 AM
  2. Replies: 6
    Last Post: 10 Dec 2011, 3:13 PM
  3. Suggestions required on layout, width, height, scroll behaviors
    By sgolla in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 1 Dec 2008, 6:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •