summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Cells
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Cells')
-rw-r--r--Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs2
-rw-r--r--Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs7
2 files changed, 3 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs b/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs
index 4d9918fa..39bedf4b 100644
--- a/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs
+++ b/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs
@@ -91,7 +91,7 @@ namespace Xamarin.Forms.Platform.iOS
contextCell.Update(tableView, cell, nativeCell);
var viewTableCell = contextCell.ContentCell as ViewCellRenderer.ViewTableCell;
if (viewTableCell != null)
- viewTableCell.SupressSeparator = true;
+ viewTableCell.SupressSeparator = tableView.SeparatorStyle == UITableViewCellSeparatorStyle.None;
nativeCell = contextCell;
}
diff --git a/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs b/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs
index 852f455a..4e7323b7 100644
--- a/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs
@@ -81,10 +81,7 @@ namespace Xamarin.Forms.Platform.iOS
}
}
- Element INativeElementView.Element
- {
- get { return ViewCell; }
- }
+ Element INativeElementView.Element => ViewCell;
internal bool SupressSeparator { get; set; }
@@ -96,7 +93,7 @@ namespace Xamarin.Forms.Platform.iOS
if (SupressSeparator)
{
var oldFrame = Frame;
- ContentView.Bounds = Frame = new RectangleF(oldFrame.Location, new SizeF(oldFrame.Width, oldFrame.Height + 0.5f));
+ ContentView.Bounds = new RectangleF(oldFrame.Location, new SizeF(oldFrame.Width, oldFrame.Height + 0.5f));
}
var contentFrame = ContentView.Frame;