UILabel.OnAnchor C# (CSharp) Méthode

OnAnchor() protected méthode

If the label is anchored it should not auto-resize.
protected OnAnchor ( ) : void
Résultat void
	protected override void OnAnchor ()
	{
		if (mOverflow == Overflow.ResizeFreely)
		{
			if (isFullyAnchored)
				mOverflow = Overflow.ShrinkContent;
		}
		else if (mOverflow == Overflow.ResizeHeight)
		{
			if (topAnchor.target != null && bottomAnchor.target != null)
				mOverflow = Overflow.ShrinkContent;
		}
		base.OnAnchor();
	}