File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments