diff --git a/Scripts/Editor/UIExtensionsMenuOptions.cs b/Scripts/Editor/UIExtensionsMenuOptions.cs index 85107cb..6faa789 100644 --- a/Scripts/Editor/UIExtensionsMenuOptions.cs +++ b/Scripts/Editor/UIExtensionsMenuOptions.cs @@ -323,8 +323,9 @@ namespace UnityEditor.UI pageImage.color = s_DefaultSelectableColor; RectTransform rectTransformPage01 = childPage01.GetComponent(); - rectTransformPage01.anchorMin = new Vector2(0f, 0.5f); - rectTransformPage01.anchorMax = new Vector2(0f, 0.5f); + rectTransformPage01.anchorMin = new Vector2(0.5f, 0f); + rectTransformPage01.anchorMax = new Vector2(0.5f, 0f); + rectTransformPage01.anchoredPosition = new Vector2(-rectTransformPage01.sizeDelta.x / 2, rectTransformPage01.sizeDelta.y / 2); //rectTransformPage01.anchoredPosition = Vector2.zero; //rectTransformPage01.sizeDelta = Vector2.zero; rectTransformPage01.pivot = new Vector2(0f, 0.5f); diff --git a/UnityUIExtensions-5.1.unitypackage b/UnityUIExtensions-5.1.unitypackage index 67c06bd..4a8f529 100644 Binary files a/UnityUIExtensions-5.1.unitypackage and b/UnityUIExtensions-5.1.unitypackage differ