PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_TreeMenu » Bug #3248

Move picture to middle in tree view

Details

Request #3248Move picture to middle in tree view
Submitted2005-01-19 21:35 UTC
Frommr-russ at pws dot com dot au
StatusWont fix
PackageHTML_TreeMenu
PHP Version4.3.9
OSGentoo 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