From 78c410766a3a96922c7cd523374eee66aa7f6da0 Mon Sep 17 00:00:00 2001 From: Chris Charabaruk Date: Fri, 21 Aug 2015 22:56:47 -0400 Subject: [PATCH] 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-18792458 --- Scripts/ComboBox/DropDownList.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/ComboBox/DropDownList.cs b/Scripts/ComboBox/DropDownList.cs index dc7441a..2475f6b 100644 --- a/Scripts/ComboBox/DropDownList.cs +++ b/Scripts/ComboBox/DropDownList.cs @@ -277,6 +277,8 @@ namespace UnityEngine.UI.Extensions /// whether an item was directly clicked on 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)