Skip to content

Commit

Permalink
Fix the size of the file list item does not fit
Browse files Browse the repository at this point in the history
  • Loading branch information
setchi committed Oct 30, 2015
1 parent 24c951f commit 2bcaebd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/Scripts/Presenter/MusicSelector/FileListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public class FileListItem : MonoBehaviour

void Awake()
{
GetComponent<RectTransform>().localScale = Vector3.one;

var text = GetComponentInChildren<Text>();
var image = GetComponent<Image>();

Expand All @@ -41,6 +39,11 @@ void Awake()
.AddTo(this);
}

void Start()
{
GetComponent<RectTransform>().localScale = Vector3.one;
}

public void SetInfo(FileItemInfo info)
{
fileItemInfo = info;
Expand Down

0 comments on commit 2bcaebd

Please sign in to comment.