private void FitWindowToContent()
{
Vector2 windowSize = this.m_WindowContent.GetWindowSize();
if (this.m_LastWantedSize != windowSize)
{
this.m_LastWantedSize = windowSize;
Rect rect = base.m_Parent.window.GetDropDownRect(this.m_ActivatorRect, windowSize, windowSize);
Vector2 vector2 = new Vector2(rect.width, rect.height);
base.maxSize = vector2;
base.minSize = vector2;
base.position = rect;
}
}