summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-09-13 12:38:16 +0100
committerGitHub <noreply@github.com>2016-09-13 12:38:16 +0100
commite49be51ad54690040fd78e6c4b5061e2ff6860f2 (patch)
tree2f3c502183a68e0e1d89efbba996c3776b906989 /Xamarin.Forms.Platform.iOS
parentc92f079ad910448aa72ca6af9775a78895f3da65 (diff)
downloadxamarin-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')
-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;