Thanks for the fix, good catch.

Merged in david_gileadi/unity-ui-extensions/fix-panel-dimensions (pull request #13)

Calculate the panel dimensions in Start to avoid scale issues
pull/413/head
David Gileadi 2017-08-01 17:51:29 +00:00 committed by Simon Jackson
commit b03f8065a5
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ namespace UnityEngine.UI.Extensions
_isVertical = false;
_childAnchorPoint = new Vector2(0, 0.5f);
_currentPage = StartingScreen;
panelDimensions = gameObject.GetComponent<RectTransform>().rect;
UpdateLayout();
}

View File

@ -16,6 +16,7 @@ namespace UnityEngine.UI.Extensions
_isVertical = true;
_childAnchorPoint = new Vector2(0.5f,0);
_currentPage = StartingScreen;
panelDimensions = gameObject.GetComponent<RectTransform>().rect;
UpdateLayout();
}