- Fixed Trac #333: organizations' drop-down list is truncated on IE when the name of an organization is too long.

SVN:trunk[977]
This commit is contained in:
Denis Flaven
2010-11-26 11:16:55 +00:00
parent 51fa310664
commit ced4bf4259
2 changed files with 8 additions and 2 deletions

View File

@@ -463,7 +463,7 @@ EOF
$oAppContext = new ApplicationContext();
$iCurrentOrganization = $oAppContext->GetCurrentValue('org_id');
$sHtml = '<div id="SiloSelection">';
$sHtml .= '<form style="display:inline" action="'.$_SERVER['PHP_SELF'].'"><select style="width:150px;font-size:x-small" name="c[org_id]" title="Pick an organization" onChange="this.form.submit();">';
$sHtml .= '<form style="display:inline" action="'.$_SERVER['PHP_SELF'].'"><select class="org_combo" name="c[org_id]" title="Pick an organization" onChange="this.form.submit();">';
$sSelected = ($iCurrentOrganization == '') ? ' selected' : '';
$sHtml .= '<option value=""'.$sSelected.'>'.Dict::S('UI:AllOrganizations').'</option>';
while($oOrg = $oSet->Fetch())
@@ -478,7 +478,7 @@ EOF
{
$sSelected = "";
}
$sHtml .= '<option value="'.$oOrg->GetKey().'"'.$sSelected.'>'.$oOrg->GetName().'</option>';
$sHtml .= '<option title="'.$oOrg->GetName().'" value="'.$oOrg->GetKey().'"'.$sSelected.'>'.$oOrg->GetName().'</option>';
}
$sHtml .= '</select>';
// Add other dimensions/context information to this form

View File

@@ -889,4 +889,10 @@ tr.row_added td {
}
a.truncated {
cursor: pointer;
}
.org_combo
{
font-size:x-small;
width: auto;
max-width: 200px;
}