From c157ffaf6097aaad904bc2261c83cec309510cfd Mon Sep 17 00:00:00 2001 From: Andrei Misiukevich Date: Thu, 20 Dec 2018 01:34:09 +0300 Subject: [PATCH] https://github.com/AndreiMisiukevich/ExpandableView/issues/7 --- ExpandableView/ExpandableView.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ExpandableView/ExpandableView.cs b/ExpandableView/ExpandableView.cs index 1c3dec1..90a5872 100644 --- a/ExpandableView/ExpandableView.cs +++ b/ExpandableView/ExpandableView.cs @@ -185,7 +185,9 @@ private void OnIsExpandedChanged() _lastVisibleHeight = _startHeight = SecondaryViewHeightRequest >= 0 ? SecondaryViewHeightRequest : !isExpanding - ? SecondaryView.Height + ? SecondaryView.Height - (SecondaryView is Layout l //https://github.com/AndreiMisiukevich/ExpandableView/issues/7 + ? l.Padding.Top + l.Padding.Bottom + : 0) : _lastVisibleHeight; _endHeight = 0; }