/** * Returns the height needed to display this dialog inside a popup without * adding scrollbars * * @since 1.0.0 * @return int Popup height */ public function dialog_height() { switch ($this->form_type) { case 'short': $height = 200; break; case 'full': default: if (MS_Model_Pages::can_edit_menus()) { $height = 412; } else { $height = 460; } break; } return $height; }