mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Changed the font size to be dynamic to the users browser.
This commit is contained in:
parent
09828d79be
commit
9e881820b8
@ -247,7 +247,23 @@ var $last_column_size;
|
||||
|
||||
$maxlevel++;
|
||||
|
||||
$cnt=0;
|
||||
// $cnt=0;
|
||||
|
||||
$browser = CreateObject('phpgwapi.browser');
|
||||
$browser->browser();
|
||||
$browser_agent = $browser->get_agent();
|
||||
switch($browser_agent)
|
||||
{
|
||||
case 'MOZILLA':
|
||||
case 'NETSCAPE':
|
||||
$text_size = 3;
|
||||
break;
|
||||
case 'IE':
|
||||
$text_size = 2;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
for($cnt=0;$cnt<$c_tree - 1;$cnt++)
|
||||
{
|
||||
if(!$visible[$cnt])
|
||||
@ -365,7 +381,7 @@ var $last_column_size;
|
||||
/****************************************/
|
||||
/* output item text */
|
||||
/****************************************/
|
||||
$str .= '<td colspan="'.($maxlevel-$tree[$cnt][0]).'"><font face="'.$phpgw_info['theme']['font'].'" size="2">';
|
||||
$str .= '<td colspan="'.($maxlevel-$tree[$cnt][0]).'"><font face="'.$phpgw_info['theme']['font'].'" size="'.$text_size.'">';
|
||||
if ($tree[$cnt][5]=='')
|
||||
{
|
||||
if ($tree[$cnt][2]=='')
|
||||
|
Loading…
Reference in New Issue
Block a user