Selaa lähdekoodia

- Cosmetics: prevent the extkey widget to warp.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@995 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 vuotta sitten
vanhempi
commit
1aa9d374e0
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      application/ui.extkeywidget.class.inc.php

+ 2 - 0
application/ui.extkeywidget.class.inc.php

@@ -95,6 +95,7 @@ class UIExtKeyWidget
 	public function Display(WebPage $oPage, $aArgs = array())
 	{
 		$bCreate = (UserRights::IsActionAllowed($this->sTargetClass, UR_ACTION_BULK_MODIFY) && $this->oAttDef->AllowTargetCreation());
+		$sHTMLValue = "<span style=\"white-space:nowrap\">"; // no wrap
 		if (count($this->aAllowedValues) < $this->oAttDef->GetMaximumComboLength())
 		{
 			// Few choices, use a normal 'select'
@@ -159,6 +160,7 @@ class UIExtKeyWidget
 		}
 		$sMessage = Dict::S('UI:Message:EmptyList:UseSearchForm');
 		$sHTMLValue .= "<span id=\"v_{$this->iId}\"></span>";
+		$sHTMLValue .= "</span>"; // end of no wrap
 		$oPage->add_ready_script(
 <<<EOF
 		oACWidget_{$this->iId} = new ExtKeyWidget('$this->iId', '$this->sClass', '$this->sAttCode', '$this->sNameSuffix', $sSelectMode, oWizardHelper{$this->sFormPrefix});