summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/ScrollView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/ScrollView.cs')
-rw-r--r--Xamarin.Forms.Core/ScrollView.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/ScrollView.cs b/Xamarin.Forms.Core/ScrollView.cs
index 13ae6ad9..2c1f070d 100644
--- a/Xamarin.Forms.Core/ScrollView.cs
+++ b/Xamarin.Forms.Core/ScrollView.cs
@@ -268,7 +268,7 @@ namespace Xamarin.Forms
double GetMaxHeight(double height)
{
- return Math.Max(height, _content.Bounds.Bottom + Padding.Bottom);
+ return Math.Max(height, _content.Bounds.Top + Padding.Top + _content.Bounds.Bottom + Padding.Bottom);
}
static double GetMaxHeight(double height, SizeRequest size)
@@ -278,7 +278,7 @@ namespace Xamarin.Forms
double GetMaxWidth(double width)
{
- return Math.Max(width, _content.Bounds.Right + Padding.Right);
+ return Math.Max(width, _content.Bounds.Left + Padding.Left + _content.Bounds.Right + Padding.Right);
}
static double GetMaxWidth(double width, SizeRequest size)