1. #11
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,568
    Vote Rating
    55
    Animal will become famous soon enough Animal will become famous soon enough

      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
    481
    Vote Rating
    434
    brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of

      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,568
    Vote Rating
    55
    Animal will become famous soon enough Animal will become famous soon enough

      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.

Thread Participants: 3