Merged in coldacid/unity-ui-extensions (pull request #6)

Fixes for issues #15 and #20
pull/413/head
Simon Jackson 2015-08-26 10:08:59 +01:00
commit 3b86ef48cd
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace UnityEngine.UI.Extensions
} }
} }
public void Awake() public void Start()
{ {
Initialize(); Initialize();
} }
@ -277,6 +277,8 @@ namespace UnityEngine.UI.Extensions
/// <param name="directClick"> whether an item was directly clicked on</param> /// <param name="directClick"> whether an item was directly clicked on</param>
public void ToggleDropdownPanel(bool directClick) public void ToggleDropdownPanel(bool directClick)
{ {
_overlayRT.transform.localScale = new Vector3(1, 1, 1);
_scrollBarRT.transform.localScale = new Vector3(1, 1, 1);
_isPanelActive = !_isPanelActive; _isPanelActive = !_isPanelActive;
_overlayRT.gameObject.SetActive(_isPanelActive); _overlayRT.gameObject.SetActive(_isPanelActive);
if (_isPanelActive) if (_isPanelActive)