{"action":"created","issue":{"url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/67","repository_url":"https://api.github.com/repos/MrFrankel/ngx-popper","labels_url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/67/comments","events_url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/67/events","html_url":"https://github.com/MrFrankel/ngx-popper/issues/67","id":339644904,"node_id":"MDU6SXNzdWUzMzk2NDQ5MDQ=","number":67,"title":"Placement not consistent","user":{"login":"jamra","id":710212,"node_id":"MDQ6VXNlcjcxMDIxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/710212?v=4","gravatar_id":"","url":"https://api.github.com/users/jamra","html_url":"https://github.com/jamra","followers_url":"https://api.github.com/users/jamra/followers","following_url":"https://api.github.com/users/jamra/following{/other_user}","gists_url":"https://api.github.com/users/jamra/gists{/gist_id}","starred_url":"https://api.github.com/users/jamra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamra/subscriptions","organizations_url":"https://api.github.com/users/jamra/orgs","repos_url":"https://api.github.com/users/jamra/repos","events_url":"https://api.github.com/users/jamra/events{/privacy}","received_events_url":"https://api.github.com/users/jamra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-09T23:46:07Z","updated_at":"2018-07-12T02:36:54Z","closed_at":null,"author_association":"NONE","body":"Thanks for the component. It's really nice to work with.\r\n\r\nI'm trying to get the actual popover placement when I pass in 'auto' so I'm running \r\n\r\n```javascript  \r\nconst pop_container = (<HTMLElement>this.popper.content['popperInstance'].popper);\r\nconst popPlacement = pop_container.getAttribute('x-placement');\r\n```\r\n\r\nIt's working most of the time, but there is a very wide popover on a very wide reference element and it keeps stating 'bottom' instead of 'right'. I'm doing a lot of sizing calculations, adding in scroll bars and max widths. \r\n\r\nI was wondering if there is a better way to do this or if you can give me access to the onUpdate method so I can run my calculations there instead of on \"onShown\"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/comments/404370766","html_url":"https://github.com/MrFrankel/ngx-popper/issues/67#issuecomment-404370766","issue_url":"https://api.github.com/repos/MrFrankel/ngx-popper/issues/67","id":404370766,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDM3MDc2Ng==","user":{"login":"jamra","id":710212,"node_id":"MDQ6VXNlcjcxMDIxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/710212?v=4","gravatar_id":"","url":"https://api.github.com/users/jamra","html_url":"https://github.com/jamra","followers_url":"https://api.github.com/users/jamra/followers","following_url":"https://api.github.com/users/jamra/following{/other_user}","gists_url":"https://api.github.com/users/jamra/gists{/gist_id}","starred_url":"https://api.github.com/users/jamra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamra/subscriptions","organizations_url":"https://api.github.com/users/jamra/orgs","repos_url":"https://api.github.com/users/jamra/repos","events_url":"https://api.github.com/users/jamra/events{/privacy}","received_events_url":"https://api.github.com/users/jamra/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T02:36:54Z","updated_at":"2018-07-12T02:36:54Z","author_association":"NONE","body":"That is correct and it happens infrequently but on some elements consistently. \r\n\r\nI wanted to try and hook into onUpdate for my calc height function because my calc height function depends on knowing the correct x-position. \r\n\r\nSo just to clarify when I inspect element, the x-position is correct but inside the onShown event, it is set to bottom when it’s really right. "}}
{"actor":{"display_login":"jamra"}}