public override void CalcHeight()
{
float minHeight = base.minHeight;
float maxHeight = base.maxHeight;
if (this.allowVerticalScroll)
{
base.minHeight = 0f;
base.maxHeight = 0f;
}
base.CalcHeight();
this.calcMinHeight = base.minHeight;
this.calcMaxHeight = base.maxHeight;
if (this.needsHorizontalScrollbar)
{
float num3 = this.horizontalScrollbar.fixedHeight + this.horizontalScrollbar.margin.top;
base.minHeight += num3;
base.maxHeight += num3;
}
if (this.allowVerticalScroll)
{
if (base.minHeight > 32f)
{
base.minHeight = 32f;
}
if (minHeight != 0f)
{
base.minHeight = minHeight;
}
if (maxHeight != 0f)
{
base.maxHeight = maxHeight;
base.stretchHeight = 0;
}
}
}