Results 1 to 2 of 2

Thread: liquidLayout and containers

  1. #1
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    84
    Answers
    1
    Vote Rating
    46
      0  

    Default liquidLayout and containers

    I have been trying out liquidLayout on most of the components in my UI to see if there is a performance gain, but I have run into a snag when trying to add items to a container with liquidLayout:true. They aren't added to the DOM no matter what I try. All my containers use the default (auto) layout.

    This also applies if any ancestor of the target container has liquidLayout:true.

    I'm doing almost everything in CSS, but I still want to use containers and add/remove items.

    Is there any way to get items added to a liquidLayout container (or descendant thereof) written to the DOM? Perhaps some simple method call on the container or items themselves?

  2. #2
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    84
    Answers
    1
    Vote Rating
    46
      0  

    Default

    I found the answer after digging through the source.

    It's case of calling getLayout().renderChildren() on the container after adding items to it.

    Whether or not this is a good idea remains to be seen. Any thoughts?

Posting Permissions

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