Browse Source

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

temp-passkeys-ios-fede
Federico Maccaroni 2 years ago
parent
commit
f3568a5bb7
No known key found for this signature in database
GPG Key ID: 5D233F8F2B034536
  1. 11
      src/iOS.Autofill/LoginListViewController.cs

11
src/iOS.Autofill/LoginListViewController.cs

@ -13,6 +13,7 @@ using Bit.iOS.Core.Controllers; @@ -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 @@ -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 @@ -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)
{

Loading…
Cancel
Save