Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Please do something to better explain "Layout run failed" errors.

  1. #11
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,608
    Vote Rating
    59
      0  

    Default

    A test case which is just the same nesting structure would be good.

  2. #12
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Raleigh, NC
    Posts
    501
    Vote Rating
    464
      0  

    Default

    So I was playing further with this, and changing the layout for the mainPanel (which is basically my root container) from anchor to fit appears to get rid of the layout failed problem.

    I can live with this since mainPanel only has one child, but it still may be of concern since obviously if someone had more than one item, fit wouldn't be an option. Also worth mentioning again that under 4.1.3 I wasn't seeing this, so not sure if it was actually a problem in 4.1.3 and it just wasn't getting properly reported in the console, or if it is still something that's changed in 4.2.

    I was always under the impression that fit layout and anchor with "100% 100%" were essentially the same thing (fill the entire available width and height of the container). Is this an invalid assumption?

    Thanks again, Animal.

    Brian

  3. #13
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,608
    Vote Rating
    59
      0  

    Default

    anchor: '100% 100%' should be the same as fit.

    But I'd always recommend using fit, if you want the child to fit exactly.

Page 2 of 2 FirstFirst 12

Posting Permissions

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