speedledgerjp
2 Sep 2011, 6:15 AM
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.
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.