using UnityEngine;
using System.Collections;
public class UIGridWrapping : UIGrid {
void Start() {
UpdateMaxPerLine ();
base.Start ();
}
[ContextMenu("Execute")]
public override void Reposition() {
UpdateMaxPerLine();
base.Reposition ();
}
void UpdateMaxPerLine() {
maxPerLine = (int) (GetComponent<UIWidget>().width/cellWidth);
}
}