ui adjustment

This commit is contained in:
2020-05-05 12:13:50 +08:00
parent 0ce7757ec4
commit fdf4c128af
18 changed files with 583 additions and 84 deletions

View File

@ -12,9 +12,10 @@ namespace Pixiview.iOS.Renderers
{
base.OnElementChanged(e);
if (Control != null)
var layer = Layer;
if (layer != null)
{
Control.Layer.MasksToBounds = true;
layer.MasksToBounds = true;
}
}
@ -22,9 +23,10 @@ namespace Pixiview.iOS.Renderers
{
base.LayoutSubviews();
if (Control != null)
var control = Control;
if (control != null)
{
Control.Layer.CornerRadius = Control.Frame.Size.Width / 2;
control.Layer.CornerRadius = control.Frame.Size.Width / 2;
}
}
}