Home » HTML » HTML_TreeMenu » Bug #3248
Move picture to middle in tree view
Details
| Request #3248 | Move picture to middle in tree view |
|---|---|
| Submitted | 2005-01-19 21:35 UTC |
| From | mr-russ at pws dot com dot au |
| Status | Wont fix |
| Package | HTML_TreeMenu |
| PHP Version | 4.3.9 |
| OS | Gentoo Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-01-19 21:35 UTC] mr-russ at pws dot com dot au
Description:
------------
A diff is posted below that makes a small update to TreeMenu.js. It makes icons middle aligned, and not top aligned. This is a small GUI improvement.
Reproduce code:
---------------
--- classes/HTML_TreeMenu/TreeMenu.js 2 Feb 2004 06:32:18 -0000 1.5
+++ classes/HTML_TreeMenu/TreeMenu.js 19 Jan 2005 10:50:20 -0000 1.6
@@ -202,7 +202,7 @@
*/
var gifname = nodes[i].n.length && this.doesMenu() && nodes[i].isDynamic ? (expanded ? 'minus' : 'plus') : 'branch';
var iconName = expanded && nodes[i].expandedIcon ? nodes[i].expandedIcon : nodes[i].icon;
- var iconimg = nodes[i].icon ? this.stringFormat('<img src="{0}/{1}" width="20" height="20" border="0" align="top" id="icon_{2}">', this.iconpath, iconName, layerID) : '';
+ var iconimg = nodes[i].icon ? this.stringFormat('<img src="{0}/{1}" width="20" height="20" border="0" align="middle" id="icon_{2}">', this.iconpath, iconName, layerID) : '';
/**
* Add event handlers