Fix panel draggers on display change

This commit is contained in:
Sinai
2022-01-22 21:44:22 +11:00
parent 91bb58b020
commit 589abe6193
3 changed files with 20 additions and 1 deletions

View File

@ -146,6 +146,8 @@ namespace UnityExplorer.UI.Panels
Rect.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, MinHeight);
}
public void EnsureValidPosition() => EnsureValidPosition(this.Rect);
public static void EnsureValidPosition(RectTransform panel)
{
var pos = panel.localPosition;