{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/2","labels_url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/2/comments","events_url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/2/events","html_url":"https://github.com/PolymerElements/paper-badge/pull/2","id":98491331,"number":2,"title":"fix badge positioning inside of custom element","user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-01T00:03:39Z","updated_at":"2015-08-03T21:54:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PolymerElements/paper-badge/pulls/2","html_url":"https://github.com/PolymerElements/paper-badge/pull/2","diff_url":"https://github.com/PolymerElements/paper-badge/pull/2.diff","patch_url":"https://github.com/PolymerElements/paper-badge/pull/2.patch"},"body":"This is exactly the same fix that was needed for https://github.com/PolymerElements/paper-tooltip/pull/17\r\n\r\nAlso added tests to make sure the badge is positioned correctly when used inside a custom element (and confirmed they were failing before this patch).\r\n\r\nI feel the contents of the `_setPosition` function should be in a helper method somewhere, but this somewhere doesn't exist so they're kinda 100% copy pasted. Sigh.\r\n\r\n/cc @morethanreal @cdata "},"comment":{"url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/comments/127416710","html_url":"https://github.com/PolymerElements/paper-badge/pull/2#issuecomment-127416710","issue_url":"https://api.github.com/repos/PolymerElements/paper-badge/issues/2","id":127416710,"user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T21:54:54Z","updated_at":"2015-08-03T21:54:54Z","body":"It would be nice to handle lazy `for`, otherwise LGTM :+1: This goes for the corresponding `paper-tooltip` PR as well."}}