1
0
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:
Kyle Spearrin
2016-07-04 02:45:32 -04:00
parent b9c823b0aa
commit f74273999c
4 changed files with 97 additions and 38 deletions

View File

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