diff options
author | Rui Marinho <me@ruimarinho.net> | 2016-09-13 12:38:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 12:38:16 +0100 |
commit | e49be51ad54690040fd78e6c4b5061e2ff6860f2 (patch) | |
tree | 2f3c502183a68e0e1d89efbba996c3776b906989 /Xamarin.Forms.Platform.iOS/Cells | |
parent | c92f079ad910448aa72ca6af9775a78895f3da65 (diff) | |
download | xamarin-forms-e49be51ad54690040fd78e6c4b5061e2ff6860f2.tar.gz xamarin-forms-e49be51ad54690040fd78e6c4b5061e2ff6860f2.tar.bz2 xamarin-forms-e49be51ad54690040fd78e6c4b5061e2ff6860f2.zip |
[iOS] - Revert setting the frame for ViewCell to try to hide the gap between cells when using a ContextActionCell (#351)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Cells')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs | 2 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs | 7 |
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; |