reset local scale for overlay and scrollbar on toggle (fixes issue #15)
Fixed by @jeffssmith1 https://bitbucket.org/ddreaper/unity-ui-extensions/issues/15#comment-18792458pull/413/head
parent
9584677329
commit
78c410766a
|
@ -277,6 +277,8 @@ namespace UnityEngine.UI.Extensions
|
|||
/// <param name="directClick"> whether an item was directly clicked on</param>
|
||||
public void ToggleDropdownPanel(bool directClick)
|
||||
{
|
||||
_overlayRT.transform.localScale = new Vector3(1, 1, 1);
|
||||
_scrollBarRT.transform.localScale = new Vector3(1, 1, 1);
|
||||
_isPanelActive = !_isPanelActive;
|
||||
_overlayRT.gameObject.SetActive(_isPanelActive);
|
||||
if (_isPanelActive)
|
||||
|
|
Loading…
Reference in New Issue