Fixed bug #4817: Clickmenu shows up at the wrong place
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sun, 4 Feb 2007 15:50:25 +0000 (15:50 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sun, 4 Feb 2007 15:50:25 +0000 (15:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1970 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index a25da81..1da2add 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-02-04  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Instant collapsing for pagetree: The pagetree now doesn't wait for the AJAX response any more when collapsing
+       * Fixed bug #4817: Clickmenu shows up at the wrong place (Thanks to Benjamin Mack for the patches)
 
 2007-02-03  Oliver Hader  <oh@inpublica.de>
 
index 0f975a3..03dd9c3 100755 (executable)
@@ -1346,10 +1346,8 @@ $str.=$this->docBodyTagBegin().
                                                GLV_x = GLV_xRel;
                                                GLV_y = GLV_yRel;
                                                
-                                               if (this.safari)        {
-                                                       GLV_x = GLV_xRel + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
-                                                       GLV_y = GLV_yRel + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
-                                               }
+                                               GLV_x = GLV_xRel + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
+                                               GLV_y = GLV_yRel + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
                                                
                                        //      status = (GLV_x+GLV_gap-GLV_curLayerX[0]) + " | " + (GLV_y+GLV_gap-GLV_curLayerY[0]);
                                                if (GLV_isVisible[1])   {