remove safe area from inset (#6169)
authorShane Neuville <shane94@hotmail.com>
Sat, 11 May 2019 19:07:49 +0000 (12:07 -0700)
committerSamantha Houts <samhouts@users.noreply.github.com>
Sat, 11 May 2019 19:07:49 +0000 (12:07 -0700)
Xamarin.Forms.Platform.iOS/Renderers/ShellTableViewController.cs

index cd48fce..d2e585c 100644 (file)
@@ -28,7 +28,7 @@ namespace Xamarin.Forms.Platform.iOS
                void OnHeaderSizeChanged(object sender, EventArgs e)
                {
                        _headerSize = HeaderMax;
-                       TableView.ContentInset = new UIEdgeInsets((nfloat)HeaderMax + SafeAreaOffset, 0, 0, 0);
+                       TableView.ContentInset = new UIEdgeInsets((nfloat)HeaderMax, 0, 0, 0);
                        LayoutParallax();
                }
 
@@ -69,7 +69,7 @@ namespace Xamarin.Forms.Platform.iOS
                        TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
                        if (Forms.IsiOS11OrNewer)
                                TableView.ContentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never;
-                       TableView.ContentInset = new UIEdgeInsets((nfloat)HeaderMax + SafeAreaOffset, 0, 0, 0);
+                       TableView.ContentInset = new UIEdgeInsets((nfloat)HeaderMax, 0, 0, 0);
                        TableView.Source = _source;
                }