Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed May 9, 2019
1 parent 5105c03 commit e7b6bb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ExpandableView/ExpandableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void ForceUpdateSize()
protected override void OnBindingContextChanged()
{
base.OnBindingContextChanged();
_lastVisibleHeight = -1;
ForceUpdateSize();
}

protected override void OnSizeAllocated(double width, double height)
Expand Down Expand Up @@ -321,13 +321,13 @@ private void InvokeAnimation()

var length = ExpandAnimationLength;
var easing = ExpandAnimationEasing;
if(!IsExpanded)
if (!IsExpanded)
{
length = CollapseAnimationLength;
easing = CollapseAnimationEasing;
}

if(_lastVisibleHeight > 0)
if (_lastVisibleHeight > 0)
{
length = Max((uint)(length * (Abs(_endHeight - _startHeight) / _lastVisibleHeight)), 1);
}
Expand Down

0 comments on commit e7b6bb8

Please sign in to comment.