{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/619","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/619/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/619/events","html_url":"https://github.com/primefaces/primeng/issues/619","id":166055452,"number":619,"title":"Popup-Menu doesn't work in positioned divs","user":{"login":"Pranen","id":19308991,"avatar_url":"https://avatars.githubusercontent.com/u/19308991?v=3","gravatar_id":"","url":"https://api.github.com/users/Pranen","html_url":"https://github.com/Pranen","followers_url":"https://api.github.com/users/Pranen/followers","following_url":"https://api.github.com/users/Pranen/following{/other_user}","gists_url":"https://api.github.com/users/Pranen/gists{/gist_id}","starred_url":"https://api.github.com/users/Pranen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pranen/subscriptions","organizations_url":"https://api.github.com/users/Pranen/orgs","repos_url":"https://api.github.com/users/Pranen/repos","events_url":"https://api.github.com/users/Pranen/events{/privacy}","received_events_url":"https://api.github.com/users/Pranen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-18T09:38:08Z","updated_at":"2016-07-25T11:08:34Z","closed_at":"2016-07-21T21:33:16Z","body":"Hi,\r\n\r\nI try currently to migrate to the newest version of primeng but I run into problems in the popup-menu.\r\n\r\nNormally, the popup-menu runs excellently, but If you put it into a div that is positioned the absolute positioning of the element fails because it's always positioned to the top of the page and not of its correct parent.\r\n\r\nIf you look into the old version (before the refactoring of the menu), the menus were created  on root-level in the dom-tree and the positioning worked. But now, the menu is created at the place where the tag is written and so the computation of the offset isn't correct anymore.\r\n\r\nExample to reproduce:\r\n\r\nDOES WORK:\r\n\r\n```html\r\n<button type=\"button\" pButton icon=\"fa fa-list\" label=\"Show\" (click)=\"menu3.toggle($event)\"></button>\r\n<p-menu #menu3 popup=\"popup\" [model]=\"menuItems\"></p-menu>\r\n```\r\n\r\nDOESN'T WORK:\r\n```html\r\n<div style=\"position: relative; border: 1px dashed green;\">\r\n    <button type=\"button\" pButton icon=\"fa fa-list\" label=\"Show\" (click)=\"menu.toggle($event)\"></button>\r\n    <p-menu #menu popup=\"popup\" [model]=\"menuItems\"></p-menu>\r\n</div>\r\n```\r\n\r\nAny clue how to solve this problem?\r\n\r\nRegards, \r\nPeter"},"comment":{"url":"https://api.github.com/repos/primefaces/primeng/issues/comments/234925141","html_url":"https://github.com/primefaces/primeng/issues/619#issuecomment-234925141","issue_url":"https://api.github.com/repos/primefaces/primeng/issues/619","id":234925141,"user":{"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},"created_at":"2016-07-25T11:08:34Z","updated_at":"2016-07-25T11:08:34Z","body":"appendTo=\"body\" should do it."}}
{"actor":{"display_login":"cagataycivici"}}