Page 1 of 1

p:contextMenu wrongly positioned when nested inside p:layout

Posted: 06 Mar 2011, 22:54
by garethwebbley
I am using a p:contextMenu with a p:dataTable inside a p:layout. When displayed the contextMenu appears below the data table rather than at the point of the click. I have removed the p:layout and the menu appears exactly where expected so I do think this is related to nesting the menu inside a layout. I have tried this with both 2.2.1 and 3.0-prime-1 versions of primefaces and the same result is seen with both.

I think the problem may be that the point to show the menu is being calculated relative to the top of the page but the layout means that it should be relative to the layoutUnit it is placed in.

I am using Mojarra 2.1.0-b11 and Tomcat 6.0.26.

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 07 Mar 2011, 20:14
by pfUser
I've got the exact same problem and I need to somehow fix urgently! I hope someone will be able to help

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 07 Mar 2011, 21:42
by palace
I have exactly the same problem but inside a tabView.

Does anybody know if there's a workaround or if the problem is going to be fixed?

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 08 Mar 2011, 20:26
by pfUser
Anyone, please? I really need to fix this :?

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 20 Mar 2011, 10:56
by usamagdy
i have the same issue

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 18 Apr 2011, 22:58
by garethwebbley
I have tried this with the new 3.0.M1 version and it's still a problem. Any ideas how to get around the problem?

Thanks

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 19 Apr 2011, 15:36
by garethwebbley
If you can point me in the right direction I am quite happy to see if I can provide a fix for this myself but I've tried to debug it and can't seem to work it out.

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 04 Jun 2011, 21:46
by Gatech
Yes, PLEASE, fix this bug! :(

I'm trying this into a Dialog (with a panelgrid inside), and it makes the form expand like 500*500px and in the corner shows the context menu :(

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 19 Jun 2011, 19:37
by Gatech
Hellooo?. Is support here?

Re: p:contextMenu wrongly positioned when nested inside p:la

Posted: 20 Jun 2011, 01:21
by kukeltje
Yes, see here, the second header