Skip to content

Commit

Permalink
PM-5154 [Passkeys iOS] Fixed empty top space on autofill password list
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemkr committed Feb 21, 2024
1 parent 25f63ec commit f3568a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/iOS.Autofill/LoginListViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Bit.iOS.Core.Utilities;
using Bit.iOS.Core.Views;
using CoreFoundation;
using CoreGraphics;
using Foundation;
using UIKit;

Expand Down Expand Up @@ -61,8 +62,12 @@ public async override void ViewDidLoad()
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;
Expand Down Expand Up @@ -289,7 +294,7 @@ public override UIView GetViewForHeader(UITableView tableView, nint section)
return headerItemView;
}

return base.GetViewForHeader(tableView, section);
return new UIView(CGRect.Empty);// base.GetViewForHeader(tableView, section);
}
catch (Exception ex)
{
Expand Down

0 comments on commit f3568a5

Please sign in to comment.