private Vector2 calculatePopupSize()
{
var width = this.MaxListWidth > 0 ? this.MaxListWidth : this.size.x;
var heightNeeded = items.Length * itemHeight + listPadding.vertical;
if( items.Length == 0 )
{
// Need a way to visually represent that the list is empty
heightNeeded = itemHeight / 2 + listPadding.vertical;
}
return new Vector2( width, Mathf.Min( this.MaxListHeight, heightNeeded ) );
}