{"action":"opened","issue":{"url":"https://api.github.com/repos/ImperialCollegeLondon/PhyloCanvas/issues/73","labels_url":"https://api.github.com/repos/ImperialCollegeLondon/PhyloCanvas/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/ImperialCollegeLondon/PhyloCanvas/issues/73/comments","events_url":"https://api.github.com/repos/ImperialCollegeLondon/PhyloCanvas/issues/73/events","html_url":"https://github.com/ImperialCollegeLondon/PhyloCanvas/issues/73","id":71339789,"number":73,"title":"Wrap Canvas in an element to make pixel ratio calculation more robust.","user":{"login":"richardgoater","id":1429721,"avatar_url":"https://avatars.githubusercontent.com/u/1429721?v=3","gravatar_id":"","url":"https://api.github.com/users/richardgoater","html_url":"https://github.com/richardgoater","followers_url":"https://api.github.com/users/richardgoater/followers","following_url":"https://api.github.com/users/richardgoater/following{/other_user}","gists_url":"https://api.github.com/users/richardgoater/gists{/gist_id}","starred_url":"https://api.github.com/users/richardgoater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardgoater/subscriptions","organizations_url":"https://api.github.com/users/richardgoater/orgs","repos_url":"https://api.github.com/users/richardgoater/repos","events_url":"https://api.github.com/users/richardgoater/events{/privacy}","received_events_url":"https://api.github.com/users/richardgoater/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ImperialCollegeLondon/PhyloCanvas/labels/enhancement","name":"enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T16:43:34Z","updated_at":"2015-04-27T16:43:34Z","closed_at":null,"body":"The original dimensions can be applied to the wrapping element, and the `<canvas>` css dimensions can be set to 100%, allowing its `height` and `width` properties to scale freely based on the dimensions of the wrapper.\r\n\r\nThis has the added benefit of allowing extra elements from plugins (e.g. history) to coexist inside of the parent element and potentially resize the `<canvas>` through normal document flow - need to confirm this though."}}