6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#902] Menu Fix
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. .. ,.___.___. | |_/ \./ [__ | | | \ | [___ |
Comment
> in RC1 the menu list scrolled off the screen to the right cutting > things off (when the foldernames were more than x chars long), > creating a long bottom scroll bar. RC2 remedied this problem, but > caused folder names to wrap to a new line below their icon > (firefox/mozilla) - which looks much worse. > > > > Using some fun CSS properties and a little tweaking of the code ive > fixed the problem. In the code below the folder names do not wrap, > they just get cut off when the frame ends, they also dont cause the > whole frame to expand right the length of the longest menu item. In > IE things are a little cooler, the folder names actually get elipsed > (i.e. longfoldernamehere becomes longfoldernameh... right before the > frame's right barrier. > > > > Tested in mozilla and IE, looks alot better than before to me. > > > > Here are the two diff files (not at an expert in submitting diffs, i > just made them running the straight old diff command with teh two > files as arguments). If you need a different format diff let me know. > > > > 1) HORDE: TEMPLATES/PORTAL/SIDEBAR.INC: > > > > 1,2c1,2 > > < <div id="expandedSidebar" style="width: width:<?php if > ($GLOBALS['browser']->hasQuirk('scrollbar_in_way')) { echo > isset($prefs) ? ($prefs->getValue('sidebar_width')-35) : 133; } else > { echo isset($prefs) ? ($prefs->getValue('sidebar_width')-50) : 150; > } ?>; overflow: hidden; padding: 0; margin: 0;"> > > < <div id="menu" style="width: width:<?php if > ($GLOBALS['browser']->hasQuirk('scrollbar_in_way')) { echo > isset($prefs) ? ($prefs->getValue('sidebar_width')-35) : 133; } else > { echo isset($prefs) ? ($prefs->getValue('sidebar_width')-50) : 150; > } ?>; overflow: hidden; padding: 0; margin: 0;"> > > --- > >> <div id="expandedSidebar"> > >> <div id="menu"> > > 21a22 > >> </div> > > 23,24c24,26 > > < </div> > > < <div id="sidebarPanel" style="overflow: hidden; width: width:<?php > if ($GLOBALS['browser']->hasQuirk('scrollbar_in_way')) { echo > isset($prefs) ? ($prefs->getValue('sidebar_width')-35) : 133; } else > { echo isset($prefs) ? ($prefs->getValue('sidebar_width')-50) : 150; > } ?>; text-overflow:ellipsis; white-space:nowrap;"> > > --- > >> <!--a75c305b1c0a6022--><table cellspacing="0" width="100%"> > >> <tr> > >> <td valign="top" id="sidebarPanel" width="100%" colspan="2"> > > 26c28,31 > > < </div> > > --- > >> </td> > >> <td> </td> > >> </tr> > >> </table> > > > > > > 2) TEMPLATES/JAVASCRIPT/TREE.JS: > > > > 165c165 > > < var line = '<div style="height:20px; clear:both; > text-overflow:ellipsis; overflow:hidden; white-space:nowrap; > width:<?php if ($GLOBALS['browser']->hasQuirk('scrollbar_in_way')) { > echo isset($prefs) ? ($prefs->getValue('sidebar_width')-35) : 133; } > else { echo isset($prefs) ? ($prefs->getValue('sidebar_width')-50) : > 150; } ?>;' + className + '>'; > > --- > >> var line = '<div style="height:20px; clear:both"' + className + '>'; > > 175,176c175,176 > > < style = 'float:left; text-overflow:ellipsis; > overflow:hidden; white-space:nowrap; width:<?php if > ($GLOBALS['browser']->hasQuirk('scrollbar_in_way')) { echo > isset($prefs) ? ($prefs->getValue('sidebar_width')-35) : 133; } else > { echo isset($prefs) ? ($prefs->getValue('sidebar_width')-50) : 150; > } ?>;'; > > < /*if (this.header[column] && this.header[column]['width']) { > > --- > >> style = 'float:left;'; > >> if (this.header[column] && this.header[column]['width']) { > > 178c178 > > < }*/ > > --- > >> } > > 261a262 > >> alert(line); > > 474c475 > > < document.body.style.marginRight = '0px'; > > --- > >> document.body.style.marginRight = '15px'; > > > > 2)
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers