com.unity.uiextensions
com.unity.uiextensions copied to clipboard
Scroll content is moving from it's original space
Issue created by Abhaya Agrawal as Bitbucket Issue #180 on 2017.10.24 20:30. In Vertical scroll snap when i am calling GoToScreen function it's moving the entire content panel also it's width is reducing.
PS: I changed childobject array to list.
public void SetCurrentValue(float val, bool isDecimal = false) { var index = 0; if (!isDecimal) { index = ChildObjects.FindIndex(x => x.GetComponent<Text>().text == val.ToString("F1")); } else { index = ChildObjects.FindIndex(x => x.GetComponent<Text>().text == ((int)val).ToString("D")); } Debug.Log("Index: " + index); GoToScreen(index); }