1
0
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:
Kyle Spearrin
2017-12-23 00:34:07 -05:00
parent 2823a86b4e
commit 0c0a928e87
3 changed files with 33 additions and 13 deletions

View File

@@ -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()