mes-x
3 Jul 2012, 11:02 PM
Hi,
i got a quite beginners question and hopefully you can help me out:
i got two Ext.container.Containers inside a wrapping container configured with the "auto"layout.
+---------------------+
| Container A |
+---------------------+
| |
| Container B |
| |
+---------------------+
Container A should only show itself on sertant conditions. On some event, i wanna use some kind of slideIn animation from the top, but initialy it should be invisible.
It was easy to do in ExtJS 3 but how to do that in ExtJS 4.1?
The challenge is not the sliding in (i do it with ...
container.getEl().slideIn("t")) but to have it initially hidden when the application starts.
I tried to configure Container A with "hidden:true" and use the slideIn, but then nothing happens. It stays hidden. When i call the show() method before sliding it in, then it is shortly visible, disappearing again and then its sliding in.
What is best practice here?
(I would be also awesome if i could still use the automatic height of Container A (Contains some HTML text with icons and some buttons))
Thank you very much for your help!
i got a quite beginners question and hopefully you can help me out:
i got two Ext.container.Containers inside a wrapping container configured with the "auto"layout.
+---------------------+
| Container A |
+---------------------+
| |
| Container B |
| |
+---------------------+
Container A should only show itself on sertant conditions. On some event, i wanna use some kind of slideIn animation from the top, but initialy it should be invisible.
It was easy to do in ExtJS 3 but how to do that in ExtJS 4.1?
The challenge is not the sliding in (i do it with ...
container.getEl().slideIn("t")) but to have it initially hidden when the application starts.
I tried to configure Container A with "hidden:true" and use the slideIn, but then nothing happens. It stays hidden. When i call the show() method before sliding it in, then it is shortly visible, disappearing again and then its sliding in.
What is best practice here?
(I would be also awesome if i could still use the automatic height of Container A (Contains some HTML text with icons and some buttons))
Thank you very much for your help!