Explorar o código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@977 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=14) %!d(string=hai) anos
pai
achega
f33a46a694
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 2 2
      application/itopwebpage.class.inc.php
  2. 6 0
      css/light-grey.css

+ 2 - 2
application/itopwebpage.class.inc.php

@@ -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

+ 6 - 0
css/light-grey.css

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