UnityEditor.ParticleEffectUI.ClampWindowContentSizes C# (CSharp) Method

ClampWindowContentSizes() private method

private ClampWindowContentSizes ( ) : void
return void
        private void ClampWindowContentSizes()
        {
            if (Event.current.type != EventType.Layout)
            {
                float width = GUIClip.visibleRect.width;
                float height = GUIClip.visibleRect.height;
                if (m_VerticalLayout)
                {
                    this.m_CurveEditorAreaHeight = Mathf.Clamp(this.m_CurveEditorAreaHeight, k_MinCurveAreaSize.y, height - k_MinEmitterAreaSize.y);
                }
                else
                {
                    this.m_EmitterAreaWidth = Mathf.Clamp(this.m_EmitterAreaWidth, k_MinEmitterAreaSize.x, width - k_MinCurveAreaSize.x);
                }
            }
        }