Results 1 to 3 of 3

Thread: LayoutContainer go invisible?

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default Answered: LayoutContainer go invisible?

    I have a big problem with containers that go invisible. It appears I can only add containers at certain states. The recent problem was that I use container.add to show stuff on screen. It is done in the constructor. If I later make a call say from another class to add more stuff to the container everything in it gets invisible.

    So say in constructor:

    containerA.add(anotherContainer)
    works! anotherContainer is visible

    later
    containerA.add(anotherContainer2);
    now container A looks like just white space!

    I also tried remove all before adding with no difference. Is there some kind of special refresh call I need to do when adding components to an already rendered container to make it visible?

    I seen when debugging that gxt does removeFromParent whenever you do an add and I suspect it has something to do with it.

  2. After
    Code:
    containerA.add(anotherContainer2);
    try to call
    Code:
    containerA.layout();

  3. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60
    Vote Rating
    131
      0  

    Default

    After
    Code:
    containerA.add(anotherContainer2);
    try to call
    Code:
    containerA.layout();

  4. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Thanks!
    That worked fine

Posting Permissions

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