Removed broken animation in regatta list on mobile multi regatta

overview page
This commit is contained in:
Benjamin Barth committed 2015-09-14 17:39:24 +02:00
1 parent ae0a58a061
commit 9ae2bf87fa
1 file changed
+5 -4
@@ -15,7 +15,6 @@ import com.sap.sailing.gwt.home.mobile.partials.toggleButton.ToggleButton.Toggle
import com.sap.sailing.gwt.home.mobile.places.event.EventViewBase.Presenter;
import com.sap.sailing.gwt.home.shared.ExperimentalFeatures;
import com.sap.sailing.gwt.home.shared.app.PlaceNavigation;
import com.sap.sailing.gwt.home.shared.utils.CollapseAnimation;
import com.sap.sailing.gwt.ui.shared.dispatch.event.LiveRaceDTO;
import com.sap.sailing.gwt.ui.shared.dispatch.event.RegattasAndLiveRacesDTO;
import com.sap.sailing.gwt.ui.shared.eventview.RegattaMetadataDTO;
@@ -32,7 +31,7 @@ public class RegattaStatus extends Composite implements RefreshableWidget<Regatt
@UiField MobileSection collapsableContainerUi;
@UiField(provided = true) ToggleButton toggleButtonUi;
private final Presenter presenter;
private CollapseAnimation animation;
// private CollapseAnimation animation;
public RegattaStatus(Presenter presenter) {
this.presenter = presenter;
@@ -40,11 +39,13 @@ public class RegattaStatus extends Composite implements RefreshableWidget<Regatt
toggleButtonUi = new ToggleButton(new ToggleButtonCommand() {
@Override
protected void execute(boolean expanded) {
if (animation != null) animation.animate(expanded);
Widget.setVisible(collapsableContainerUi.getElement(), expanded);
// if (animation != null) animation.animate(expanded);
}
});
initWidget(uiBinder.createAndBindUi(this));
this.animation = new CollapseAnimation(collapsableContainerUi.getElement().getFirstChildElement(), false);
Widget.setVisible(collapsableContainerUi.getElement(), false);
// this.animation = new CollapseAnimation(collapsableContainerUi.getElement().getFirstChildElement(), false);
}
@Override