1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 21:33:36 +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.Utilities;
using Bit.iOS.Core.Views; using Bit.iOS.Core.Views;
using CoreFoundation; using CoreFoundation;
using CoreGraphics;
using Foundation; using Foundation;
using UIKit; using UIKit;
@@ -61,8 +62,12 @@ namespace Bit.iOS.Autofill
TableView.EstimatedRowHeight = 44; TableView.EstimatedRowHeight = 44;
TableView.BackgroundColor = ThemeHelpers.BackgroundColor; TableView.BackgroundColor = ThemeHelpers.BackgroundColor;
TableView.Source = new TableSource(this); TableView.Source = new TableSource(this);
if (Context.IsCreatingPasskey)
{
TableView.SectionHeaderHeight = 55; TableView.SectionHeaderHeight = 55;
TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER); TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER);
}
if (UIDevice.CurrentDevice.CheckSystemVersion(15, 0)) if (UIDevice.CurrentDevice.CheckSystemVersion(15, 0))
{ {
TableView.SectionHeaderTopPadding = 0; TableView.SectionHeaderTopPadding = 0;
@@ -289,7 +294,7 @@ namespace Bit.iOS.Autofill
return headerItemView; return headerItemView;
} }
return base.GetViewForHeader(tableView, section); return new UIView(CGRect.Empty);// base.GetViewForHeader(tableView, section);
} }
catch (Exception ex) catch (Exception ex)
{ {