mirror of
https://github.com/bitwarden/mobile
synced 2026-01-07 19:13:19 +00:00
Relative layout on register page to show help text under password and hint.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Models;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
|
||||
namespace Bit.App
|
||||
@@ -17,5 +18,15 @@ namespace Bit.App
|
||||
var cryptoService = Resolver.Resolve<ICryptoService>();
|
||||
return cryptoService.Encrypt(s);
|
||||
}
|
||||
|
||||
public static bool IsPortrait(this Page page)
|
||||
{
|
||||
return page.Width < page.Height;
|
||||
}
|
||||
|
||||
public static bool IsLandscape(this Page page)
|
||||
{
|
||||
return !page.IsPortrait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user