PDA

View Full Version : Slidein component when adding it to a panel



lee el
4 Feb 2013, 12:54 AM
Hi,

I want to add to my main panel a new panel when user click some button.
I want to add it with animation of SlideIn from bottom.
The problem is that first I need to add it to the main panel and then start the animation and this does not look good.
you see the new panel in the final position and then it disappears (very quickly) and then starts to slide in from the bottom.
I add the panel as hidden and after I define the animation I change it to visible.
I guess there should be a simple solution for this.

thanks,
Lee




var table = this.getTableView();
this.add(table);
table.el.slideIn('b', { duration: 500 });
table.setVisible(true);