using System;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x0200009D RID: 157
public class ContentSizeFitterEx : ContentSizeFitter
{
	// Token: 0x06000EA9 RID: 3753 RVA: 0x001177E8 File Offset: 0x001159E8
	public override void SetLayoutHorizontal()
	{
		base.SetLayoutHorizontal();
		RectTransform rectTransform = base.transform as RectTransform;
		Vector2 sizeDelta = rectTransform.sizeDelta;
		sizeDelta.x = Mathf.Clamp(sizeDelta.x, this.sizeMin.x, this.sizeMax.x);
		rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, sizeDelta.x);
	}

	// Token: 0x06000EAA RID: 3754 RVA: 0x00117844 File Offset: 0x00115A44
	public override void SetLayoutVertical()
	{
		base.SetLayoutVertical();
		RectTransform rectTransform = base.transform as RectTransform;
		Vector2 sizeDelta = rectTransform.sizeDelta;
		sizeDelta.y = Mathf.Clamp(sizeDelta.y, this.sizeMin.y, this.sizeMax.y);
		rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, sizeDelta.y);
	}

	// Token: 0x0400173B RID: 5947
	public Vector2 sizeMin = new Vector2(0f, 0f);

	// Token: 0x0400173C RID: 5948
	public Vector2 sizeMax = new Vector2(350f, 1080f);
}
