diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 15218406a94..fa358c37d5f 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -771,9 +771,9 @@ if ($action == 'create')
$events[]=array('method' => 'getContacts', 'url' => dol_buildpath('/core/ajax/contacts.php?showempty=1',1), 'htmlname' => 'contactid', 'params' => array('add-customer-contact' => 'disabled'));
//For external user force the company to user company
if (!empty($user->societe_id)) {
- print $form->select_company($user->societe_id, 'socid', '', 1, 1, 0, $events);
+ print $form->select_company($user->societe_id, 'socid', '', 1, 1, 0, $events, 0, 'minwidth300');
} else {
- print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, $events);
+ print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, $events, 0, 'minwidth300');
}
}
@@ -781,7 +781,7 @@ if ($action == 'create')
// Related contact
print '
| '.$langs->trans("ActionOnContact").' | ';
- $form->selectcontacts(GETPOST('socid','int'), GETPOST('contactid'), 'contactid', 1, '', '', 0, 'minwidth200');
+ print $form->selectcontacts(GETPOST('socid','int'), GETPOST('contactid'), 'contactid', 1, '', '', 0, 'minwidth300');
print ' |
';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index b30309cdba6..74b1416ec08 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1331,7 +1331,7 @@ class Form
}
if ($htmlname != 'none' || $options_only) $out.= '