Comment #2 on issue 15535 by jer...@chromium.org: doula.co.il: Navigation  
menus are unusable in Chrome
http://code.google.com/p/chromium/issues/detail?id=15535

Proposed workaround for evangelism purposes:
The findPosX() and findPosY() functions from  
http://blog.firetree.net/2005/07/04/javascript-find-position/ can be used
instead of
oDiv.childNodes[0].offsetParent.offsetTop + oDiv.childNodes[0].offsetHeight  
and
oDiv.childNodes[0].offsetParent.offsetLeft;

in showFirstNodeV().

However, findPosX() returns the absolute top position of the element rather  
than the bottom (like the previous code so
oDiv.childNodes[0].offsetHeight needs to be added.

After these fixes the corrected version of showFirstNodeV() should look  
like:

function showFirstNodeV(oDiv) {
        if (oDiv.childNodes[1]) {
                var childNode = oDiv.childNodes[0];
                oDiv.childNodes[1].style.width = 
childNode.offsetParent.offsetWidth;
                oDiv.childNodes[1].style.top = findPosY(childNode) +  
childNode.offsetHeight;
                oDiv.childNodes[1].style.left = findPosX(childNode);
                oDiv.childNodes[1].style.visibility = "visible";
        }
}


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to