mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
toast layout updates
This commit is contained in:
parent
c7ba465970
commit
c4c24ee240
1 changed files with 4 additions and 10 deletions
|
@ -13,11 +13,11 @@ namespace Bit.iOS.Core.Views
|
||||||
private NSLayoutConstraint _bottomMarginConstraint;
|
private NSLayoutConstraint _bottomMarginConstraint;
|
||||||
|
|
||||||
public Toast(string text)
|
public Toast(string text)
|
||||||
: base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 44))
|
: base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 38))
|
||||||
{
|
{
|
||||||
TranslatesAutoresizingMaskIntoConstraints = false;
|
TranslatesAutoresizingMaskIntoConstraints = false;
|
||||||
BackgroundColor = UIColor.DarkGray;
|
BackgroundColor = UIColor.DarkGray.ColorWithAlpha(0.9f);
|
||||||
Layer.CornerRadius = 8;
|
Layer.CornerRadius = 15;
|
||||||
Layer.MasksToBounds = true;
|
Layer.MasksToBounds = true;
|
||||||
|
|
||||||
MessageLabel = new UILabel
|
MessageLabel = new UILabel
|
||||||
|
@ -55,7 +55,7 @@ namespace Bit.iOS.Core.Views
|
||||||
public nfloat LeftMargin { get; set; } = 5;
|
public nfloat LeftMargin { get; set; } = 5;
|
||||||
public nfloat RightMargin { get; set; } = 5;
|
public nfloat RightMargin { get; set; } = 5;
|
||||||
public nfloat BottomMargin { get; set; } = 5;
|
public nfloat BottomMargin { get; set; } = 5;
|
||||||
public nfloat Height { get; set; } = 44;
|
public nfloat Height { get; set; } = 38;
|
||||||
|
|
||||||
public void Show()
|
public void Show()
|
||||||
{
|
{
|
||||||
|
@ -106,12 +106,6 @@ namespace Bit.iOS.Core.Views
|
||||||
{
|
{
|
||||||
_dismissTimer?.Invalidate();
|
_dismissTimer?.Invalidate();
|
||||||
_dismissTimer = null;
|
_dismissTimer = null;
|
||||||
nfloat superViewWidth = 0;
|
|
||||||
|
|
||||||
if(Superview != null)
|
|
||||||
{
|
|
||||||
superViewWidth = Superview.Frame.Width;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!animated)
|
if(!animated)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue