public static float GetPreferredWidth(ILayoutElement _element) { return(_element == null ? 0.0f : Mathf.Max(Mathf.Max(_element.get_minWidth(), _element.get_preferredWidth()), 0.0f)); }