Skip to content

Commit 2bcaebd

Browse files
author
setchi
committed
Fix the size of the file list item does not fit
1 parent 24c951f commit 2bcaebd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Assets/Scripts/Presenter/MusicSelector/FileListItem.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public class FileListItem : MonoBehaviour
3030

3131
void Awake()
3232
{
33-
GetComponent<RectTransform>().localScale = Vector3.one;
34-
3533
var text = GetComponentInChildren<Text>();
3634
var image = GetComponent<Image>();
3735

@@ -41,6 +39,11 @@ void Awake()
4139
.AddTo(this);
4240
}
4341

42+
void Start()
43+
{
44+
GetComponent<RectTransform>().localScale = Vector3.one;
45+
}
46+
4447
public void SetInfo(FileItemInfo info)
4548
{
4649
fileItemInfo = info;

0 commit comments

Comments
 (0)