1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-12 06:13:21 +00: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

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