1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

PM-5154 [Passkeys iOS] Fixed empty top space on autofill password list

This commit is contained in:
Federico Maccaroni
2024-02-21 10:04:46 -03:00
parent 25f63ec4e0
commit f3568a5bb7

View File

@@ -13,6 +13,7 @@ using Bit.iOS.Core.Controllers;
using Bit.iOS.Core.Utilities;
using Bit.iOS.Core.Views;
using CoreFoundation;
using CoreGraphics;
using Foundation;
using UIKit;
@@ -61,8 +62,12 @@ namespace Bit.iOS.Autofill
TableView.EstimatedRowHeight = 44;
TableView.BackgroundColor = ThemeHelpers.BackgroundColor;
TableView.Source = new TableSource(this);
TableView.SectionHeaderHeight = 55;
TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER);
if (Context.IsCreatingPasskey)
{
TableView.SectionHeaderHeight = 55;
TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER);
}
if (UIDevice.CurrentDevice.CheckSystemVersion(15, 0))
{
TableView.SectionHeaderTopPadding = 0;
@@ -289,7 +294,7 @@ namespace Bit.iOS.Autofill
return headerItemView;
}
return base.GetViewForHeader(tableView, section);
return new UIView(CGRect.Empty);// base.GetViewForHeader(tableView, section);
}
catch (Exception ex)
{