{"action":"closed","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/1138","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/1138/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/1138/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/1138/events","html_url":"https://github.com/primefaces/primefaces/issues/1138","id":133153457,"number":1138,"title":"Optimize contextmenu positioning for beforeShow callback","user":{"login":"sudheerj","id":3127317,"avatar_url":"https://avatars.githubusercontent.com/u/3127317?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheerj","html_url":"https://github.com/sudheerj","followers_url":"https://api.github.com/users/sudheerj/followers","following_url":"https://api.github.com/users/sudheerj/following{/other_user}","gists_url":"https://api.github.com/users/sudheerj/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerj/subscriptions","organizations_url":"https://api.github.com/users/sudheerj/orgs","repos_url":"https://api.github.com/users/sudheerj/repos","events_url":"https://api.github.com/users/sudheerj/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/primefaces/primefaces/labels/enhancement","name":"enhancement","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"tandraschko","id":2485545,"avatar_url":"https://avatars.githubusercontent.com/u/2485545?v=3","gravatar_id":"","url":"https://api.github.com/users/tandraschko","html_url":"https://github.com/tandraschko","followers_url":"https://api.github.com/users/tandraschko/followers","following_url":"https://api.github.com/users/tandraschko/following{/other_user}","gists_url":"https://api.github.com/users/tandraschko/gists{/gist_id}","starred_url":"https://api.github.com/users/tandraschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tandraschko/subscriptions","organizations_url":"https://api.github.com/users/tandraschko/orgs","repos_url":"https://api.github.com/users/tandraschko/repos","events_url":"https://api.github.com/users/tandraschko/events{/privacy}","received_events_url":"https://api.github.com/users/tandraschko/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/primefaces/primefaces/milestones/3","html_url":"https://github.com/primefaces/primefaces/milestones/6.0","labels_url":"https://api.github.com/repos/primefaces/primefaces/milestones/3/labels","id":1326636,"number":3,"title":"6.0","description":"","creator":{"login":"cagataycivici","id":686247,"avatar_url":"https://avatars.githubusercontent.com/u/686247?v=3","gravatar_id":"","url":"https://api.github.com/users/cagataycivici","html_url":"https://github.com/cagataycivici","followers_url":"https://api.github.com/users/cagataycivici/followers","following_url":"https://api.github.com/users/cagataycivici/following{/other_user}","gists_url":"https://api.github.com/users/cagataycivici/gists{/gist_id}","starred_url":"https://api.github.com/users/cagataycivici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagataycivici/subscriptions","organizations_url":"https://api.github.com/users/cagataycivici/orgs","repos_url":"https://api.github.com/users/cagataycivici/repos","events_url":"https://api.github.com/users/cagataycivici/events{/privacy}","received_events_url":"https://api.github.com/users/cagataycivici/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":213,"state":"open","created_at":"2015-09-28T11:54:10Z","updated_at":"2016-03-11T16:57:26Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-12T04:04:59Z","updated_at":"2016-03-11T16:57:26Z","closed_at":"2016-03-11T16:57:26Z","body":"Currently contextmenu positioning applied before calling the beforeShow function.Due to this if we remove/add menuitems then contextmenu position is not correct with respect to target.\r\n\r\n```\r\nfunction fiter(){\r\n     PF('widgetvar').eq(2).next.hide();\r\n     PF('widgetvar').eq(3).next.hide();\r\n     ...............\r\n}\r\n\r\n<p:contextMenu beforeShow=\"filter()\"\r\n```\r\n\r\n\r\n\r\n"}}