1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-28 09:42:08 +01:00

no max lines on android labels

This commit is contained in:
Kyle Spearrin 2017-11-03 17:22:53 -04:00
parent 6d06f2212e
commit d4f6e9c587
2 changed files with 17 additions and 0 deletions

View File

@ -287,6 +287,7 @@
<ItemGroup>
<Compile Include="AutofillActivity.cs" />
<Compile Include="AutofillCredentials.cs" />
<Compile Include="Controls\CustomLabelRenderer.cs" />
<Compile Include="Controls\CustomSearchBarRenderer.cs" />
<Compile Include="Controls\CustomButtonRenderer.cs" />
<Compile Include="Controls\HybridWebViewRenderer.cs" />

View File

@ -0,0 +1,16 @@
using Bit.Android.Controls;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(Label), typeof(CustomLabelRenderer))]
namespace Bit.Android.Controls
{
public class CustomLabelRenderer : LabelRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Label> e)
{
base.OnElementChanged(e);
Control.SetMaxLines(int.MaxValue);
}
}
}