com.unity.uiextensions icon indicating copy to clipboard operation
com.unity.uiextensions copied to clipboard

Scroll content is moving from it's original space

Open SimonDarksideJ opened this issue 3 years ago • 0 comments

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); }

SimonDarksideJ avatar Apr 25 '22 16:04 SimonDarksideJ