From c4c24ee24095450dd33cf588395f5d4e78e7fa10 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 23 Dec 2017 23:22:47 -0500 Subject: [PATCH] toast layout updates --- src/iOS.Core/Views/Toast.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/iOS.Core/Views/Toast.cs b/src/iOS.Core/Views/Toast.cs index 80ec96a57..b10b8ff51 100644 --- a/src/iOS.Core/Views/Toast.cs +++ b/src/iOS.Core/Views/Toast.cs @@ -13,11 +13,11 @@ namespace Bit.iOS.Core.Views private NSLayoutConstraint _bottomMarginConstraint; public Toast(string text) - : base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 44)) + : base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 38)) { TranslatesAutoresizingMaskIntoConstraints = false; - BackgroundColor = UIColor.DarkGray; - Layer.CornerRadius = 8; + BackgroundColor = UIColor.DarkGray.ColorWithAlpha(0.9f); + Layer.CornerRadius = 15; Layer.MasksToBounds = true; MessageLabel = new UILabel @@ -55,7 +55,7 @@ namespace Bit.iOS.Core.Views public nfloat LeftMargin { get; set; } = 5; public nfloat RightMargin { get; set; } = 5; public nfloat BottomMargin { get; set; } = 5; - public nfloat Height { get; set; } = 44; + public nfloat Height { get; set; } = 38; public void Show() { @@ -106,12 +106,6 @@ namespace Bit.iOS.Core.Views { _dismissTimer?.Invalidate(); _dismissTimer = null; - nfloat superViewWidth = 0; - - if(Superview != null) - { - superViewWidth = Superview.Frame.Width; - } if(!animated) {