[iOS] - Revert setting the frame for ViewCell to try to hide the gap between cells when using a ContextActionCell (#351)
This commit is contained in:
Родитель
c92f079ad9
Коммит
e49be51ad5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче