}
panel.getElement().alignTo(getElement(), align, 0, 0);
if (animate && !disableAnimations) {
Fx fx = new Fx();
fx.addAfterAnimateHandler(new AfterAnimateHandler() {
@Override
public void onAfterAnimate(AfterAnimateEvent event) {
expanded = true;
}
});