[TYPO3-dev] 0001055: XMenu_Layers fails to position layers correctly in Firefox

Ansgar Brauner ansgar.brauner at gmail.com
Tue Feb 13 13:29:09 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

i need some information from someone who coded the gmenu_layers.php. I
hope its the right place to ask.

With version 3.7 there was a change in the function
extProc_beforeAllWrap. This change added some style to the gmenu-items.
Can anybody tell me why this modification was necessary´. It doesn't
work with some of my menus in firefox.

There is a bugreport at http://bugs.typo3.org/view.php?id=1055

if there was no reason to change the function, maybe its possible to
correct the lines.

Here is my suggested diff-file (please excuse the wraps):

- --- gmenu_layers.php	2005-11-17 00:30:02.000000000 +0100
+++ gmenu_layers2.php	2005-11-17 00:16:02.000000000 +0100
@@ -239,7 +239,7 @@
 	 */
 	function extProc_beforeAllWrap($item,$key)	{
 		if ($this->mconf['relativeToTriggerItem'])	{
- -			$item = '<div
id="anchorID'.t3lib_div::shortmd5($this->I['uid'].'-'.$this->WMid).'"
style="position:absolute;visibility:hidden;"></div><div
id="itemID'.t3lib_div::shortmd5($this->I['uid'].'-'.$this->WMid).'"style="width:100%;
height:100%;">'.$item.'</div>';

+			$item = '<div
id="anchorID'.t3lib_div::shortmd5($this->I['uid'].'-'.$this->WMid).'"
style="position:absolute;visibility:hidden;"></div><div
id="itemID'.t3lib_div::shortmd5($this->I['uid'].'-'.$this->WMid).'"">'.$item.'</div>';
 		}
 		return $item;
 	}



regards Ansgar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFF0a8Vko8tyVa+KDIRArapAJsHQfD7busKDEjdOsxmlwbtybq0zACgyBII
Ac8COliOfsulIOX6mnM+VdY=
=sKLZ
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gmenu_layers.php.diff.txt
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20070213/f9c6a628/attachment.txt>


More information about the TYPO3-dev mailing list