summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-29 13:20:12 +0000
committerthomascube <thomas@roundcube.net>2008-08-29 13:20:12 +0000
commite1eb70b617cde5a36008e5ac8d3b787117f226a9 (patch)
tree645135c7577112d16fb1ecbcb958526b03ba302b /program/include
parent940fc136b59a63f4f42ff5a649a59af7863f7f8c (diff)
Fix position of collapse/expand icons (#1485302)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 869921edb..629599dc5 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1053,10 +1053,6 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, $maxlength, $
'id' => "rcmli".$folder_id,
'class' => join(' ', $classes),
'noclose' => true),
- html::div(array(
- 'class' => empty($folder['folders']) ? 'nocollapse' : ($collapsed ? 'collapsed' : 'expanded'),
- 'onclick' => sprintf("%s.command('collapse-folder', '%s')", JS_OBJECT_NAME, $js_name)
- ), '&nbsp;') .
html::a(array(
'href' => rcmail_url('', array('_mbox' => $folder['id'])),
'onclick' => sprintf("return %s.command('list','%s',this)", JS_OBJECT_NAME, $js_name),
@@ -1064,7 +1060,12 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, $maxlength, $
'onmouseout' => sprintf("return %s.unfocus_folder('%s')", JS_OBJECT_NAME, $js_name),
'onmouseup' => sprintf("return %s.folder_mouse_up('%s')", JS_OBJECT_NAME, $js_name),
'title' => $title,
- ), Q($foldername)));
+ ), Q($foldername)) .
+ (!empty($folder['folders']) ? html::div(array(
+ 'class' => ($collapsed ? 'collapsed' : 'expanded'),
+ 'style' => "position:absolute",
+ 'onclick' => sprintf("%s.command('collapse-folder', '%s')", JS_OBJECT_NAME, $js_name)
+ ), '&nbsp;') : ''));
if (!empty($folder['folders']))
$out .= "\n<ul" . ($collapsed ? " style=\"display: none;\"" : "") . ">\n" . rcmail_render_folder_tree_html($folder['folders'], $mbox_name, $maxlength, $realnames, $nestLevel+1) . "</ul>\n";