* IE9: enable IE dropdown menu hack only for IE<9, as it stalls IE9 www.stylite.de bug #1722

This commit is contained in:
Ralf Becker 2011-05-31 07:55:51 +00:00
parent eeda69071f
commit 61c0b251c3
2 changed files with 3 additions and 3 deletions

View File

@ -738,7 +738,7 @@ abstract class egw_framework
$java_script = '';
// GLOBAL var to tell egroupware wether or not to enable the IE selectBox resize hack
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_ie_dropdownmenuhack'])
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_ie_dropdownmenuhack'] && html::$user_agent == 'msie' && html::$ua_version < 9)
{
$java_script .= "<script type=\"text/javascript\">\nvar enable_ie_dropdownmenuhack=1;\n</script>\n";
}

View File

@ -320,8 +320,8 @@ class html
{
$options .= ' size="'.abs($multiple).'"';
}
// fix width for MSIE in/for selectboxes
if (self::$user_agent == 'msie')
// fix width for MSIE < 9 in/for selectboxes
if (self::$user_agent == 'msie' && self::$ua_version < 9)
{
if (stripos($options,'onfocus="') === false)
{