I forgot the versions.
B.t.w. I'm not sure in one detail.. Did you mean initial position wrong or the position after scrolling the container?
<h:panelGroup id="picture" layout="block" style="width:200px;height:200px;overflow:auto"> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic" style="border : 5px solid #E4EAEF"/> <rich:contextMenu event="oncontextmenu" attachTo="pic" submitMode="none"> <rich:menuItem value="Zoom In" onclick="enlarge('pic');" id="zin"></rich:menuItem> <rich:menuItem value="Zoom Out" onclick="decrease('pic');" id="zout"></rich:menuItem> </rich:contextMenu> </h:panelGroup>
There the menu appears ok for me without difference if the container was scrooled before calling the menu or not.
Before scroll it appears in the proper position. After scroll it is near the top of the scrolling container.
I was about to roll this out into production when I noticed this problem.
Is there any way to work around this currently?
If not, I will have to remove it.
Actually it appears above where is should be proportionally to how much the container was scrolled.