Skip to content

Commit e7b6bb8

Browse files
fixed formatting
1 parent 5105c03 commit e7b6bb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ExpandableView/ExpandableView.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public void ForceUpdateSize()
191191
protected override void OnBindingContextChanged()
192192
{
193193
base.OnBindingContextChanged();
194-
_lastVisibleHeight = -1;
194+
ForceUpdateSize();
195195
}
196196

197197
protected override void OnSizeAllocated(double width, double height)
@@ -321,13 +321,13 @@ private void InvokeAnimation()
321321

322322
var length = ExpandAnimationLength;
323323
var easing = ExpandAnimationEasing;
324-
if(!IsExpanded)
324+
if (!IsExpanded)
325325
{
326326
length = CollapseAnimationLength;
327327
easing = CollapseAnimationEasing;
328328
}
329329

330-
if(_lastVisibleHeight > 0)
330+
if (_lastVisibleHeight > 0)
331331
{
332332
length = Max((uint)(length * (Abs(_endHeight - _startHeight) / _lastVisibleHeight)), 1);
333333
}

0 commit comments

Comments
 (0)