diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 04f516374c6..e1328e6df8a 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -425,14 +425,14 @@ if ($user->admin) { } print ''."\n"; -print ''; +print ''; $state_id = 0; if (!empty($conf->global->MAIN_INFO_SOCIETE_STATE)) { $tmp = explode(':', $conf->global->MAIN_INFO_SOCIETE_STATE); $state_id = $tmp[0]; } print img_picto('', 'state', 'class="pictofixedwidth"'); -print $formcompany->select_state($state_id, $mysoc->country_code, 'state_id'); +print $formcompany->select_state($state_id, $mysoc->country_code, 'state_id', 'maxwidth200onsmartphone minwidth300'); print ''."\n"; // Currency diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index 1c188792a09..edc431819da 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -266,10 +266,11 @@ class FormCompany extends Form * @param int $selected Code state preselected (mus be state id) * @param integer $country_codeid Country code or id: 0=list for all countries, otherwise country code or country rowid to show * @param string $htmlname Id of department. If '', we want only the string with ';