Remove animations

This commit is contained in:
Andrei Zavatski 2019-10-09 13:45:14 +03:00
parent 7e3c97f496
commit c9d5bea0f1
1 changed files with 1 additions and 6 deletions

View File

@ -25,7 +25,6 @@ public class DrawableComment : CompositeDrawable
private const int child_margin = 20; private const int child_margin = 20;
private const int chevron_margin = 30; private const int chevron_margin = 30;
private const int message_padding = 40; private const int message_padding = 40;
private const int duration = 200;
private const float separator_height = 1.5f; private const float separator_height = 1.5f;
private const int deleted_placeholder_margin = 80; private const int deleted_placeholder_margin = 80;
@ -159,8 +158,6 @@ public DrawableComment(Comment comment)
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
AutoSizeDuration = duration,
AutoSizeEasing = Easing.OutQuint,
Masking = true, Masking = true,
Child = new FillFlowContainer Child = new FillFlowContainer
{ {
@ -249,14 +246,12 @@ protected override void LoadComplete()
private void onChildExpandedChanged(ValueChangedEvent<bool> expanded) private void onChildExpandedChanged(ValueChangedEvent<bool> expanded)
{ {
childCommentsVisibilityContainer.ClearTransforms();
if (expanded.NewValue) if (expanded.NewValue)
childCommentsVisibilityContainer.AutoSizeAxes = Axes.Y; childCommentsVisibilityContainer.AutoSizeAxes = Axes.Y;
else else
{ {
childCommentsVisibilityContainer.AutoSizeAxes = Axes.None; childCommentsVisibilityContainer.AutoSizeAxes = Axes.None;
childCommentsVisibilityContainer.ResizeHeightTo(0, duration, Easing.OutQuint); childCommentsVisibilityContainer.ResizeHeightTo(0);
} }
} }