Projects ⇒ Bugs ⇒ #624: A missing parameter causes Admin Menu to stretch ⇒ CPG Dragonfly™ CMS
Bug #624 A missing parameter causes Admin Menu to stretch
Project: Dragonfly 9.0.3 -> 9.3 Category: *CPG Core Issues
Submitted: Wednesday, September 07, 2005 (11:56:10) Modified: Monday, October 03, 2005 (02:45:01)
Status: Closed Assigned to:
PHP Version: Irrelevant HTTPD Server: Apache 2.0

View/Vote Add Comment

by: Andreas
When using alternative images, like a transparent 1x20px large image for the menu's the Admin DHTML Menu stretches and distorts.

Reproduce code:
Open: includes/classes/cpg_adminmenu.php

At line 151
replace this original line
$content .= "\n ['".$this->_mmimage($catimage)." width=\"16\" alt=\"\" />', '".str_replace('\'', '\\\'', $cattitle)."', '$catlnk', null, null,".substr($tmpcontent,0,-1)."\n ],";

Change to:
$content .= "\n ['".$this->_mmimage($catimage)." width=\"16\" height=\"16\" alt=\"\" />', '".str_replace('\'', '\\\'', $cattitle)."', '$catlnk', null, null,".substr($tmpcontent,0,-1)."\n ],";

I just added height=\"16\" to keep a nice height between each menu item.
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous


Support for DragonflyCMS in a other languages: