mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
adjust toast bottom margin depending on tab bar
This commit is contained in:
@@ -12,7 +12,8 @@ namespace Bit.iOS.Core.Views
|
||||
private NSLayoutConstraint _rightMarginConstraint;
|
||||
private NSLayoutConstraint _bottomMarginConstraint;
|
||||
|
||||
public Toast(string text) : base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 44))
|
||||
public Toast(string text)
|
||||
: base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 44))
|
||||
{
|
||||
TranslatesAutoresizingMaskIntoConstraints = false;
|
||||
BackgroundColor = UIColor.DarkGray;
|
||||
@@ -53,7 +54,7 @@ namespace Bit.iOS.Core.Views
|
||||
public UILabel MessageLabel { get; set; }
|
||||
public nfloat LeftMargin { get; set; } = 5;
|
||||
public nfloat RightMargin { get; set; } = 5;
|
||||
public nfloat BottomMargin { get; set; } = 55;
|
||||
public nfloat BottomMargin { get; set; } = 5;
|
||||
public nfloat Height { get; set; } = 44;
|
||||
|
||||
public void Show()
|
||||
|
||||
Reference in New Issue
Block a user