I have a rich:panel that embedds a rich:tree with a context menu attached via componentControl to each node.
The panel height is fixed and overflow is set to auto, such that scrollbars appear if tree gets to large.
My problem is now if user scrolls within the panel the context menu does not take the scroll position of the panel into account, i.e. the context menu does not appear at the cursor/node position.
If I use the tree without a panel of fixed height and the browser-scrollbars appear, it is working.
I doubt this is a bug in RichFaces, but what can I do to have the context menu take the scrollbar position of my div into account?
I found the solution on myself.
The context menu must not be defined within any container that is scrollable or positioned. Best thing is to define it directly under the body tag.