multiselectbox with checkboxes: calculated widths was far to much

This commit is contained in:
Ralf Becker 2005-09-30 14:21:50 +00:00
parent fef3601280
commit 42e14d2cfd

View File

@ -321,7 +321,7 @@ class html
' id="'.$base_name.'['.$val.']'.'" '.($title ? 'title="'.$this->htmlspecialchars($title).'" ':'')). ' id="'.$base_name.'['.$val.']'.'" '.($title ? 'title="'.$this->htmlspecialchars($title).'" ':'')).
$this->htmlspecialchars($label),$base_name.'['.$val.']')."<br />\n"; $this->htmlspecialchars($label),$base_name.'['.$val.']')."<br />\n";
} }
$style = 'height: '.(1.7*$multiple).'em; width: '.(4+0.65*$max_len).'em; background-color: white; overflow: auto; border: lightgray 2px inset;'; $style = 'height: '.(1.7*$multiple).'em; width: '.(4+0.5*$max_len).'em; background-color: white; overflow: auto; border: lightgray 2px inset;';
return $this->div($html,$options,'',$style); return $this->div($html,$options,'',$style);
} }