{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/1270","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/1270/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/1270/events","html_url":"https://github.com/kangax/fabric.js/issues/1270","id":31321597,"number":1270,"title":"Support percentage width / height values on the canvas","user":{"login":"Siyfion","id":338488,"avatar_url":"https://avatars.githubusercontent.com/u/338488?v=3","gravatar_id":"","url":"https://api.github.com/users/Siyfion","html_url":"https://github.com/Siyfion","followers_url":"https://api.github.com/users/Siyfion/followers","following_url":"https://api.github.com/users/Siyfion/following{/other_user}","gists_url":"https://api.github.com/users/Siyfion/gists{/gist_id}","starred_url":"https://api.github.com/users/Siyfion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siyfion/subscriptions","organizations_url":"https://api.github.com/users/Siyfion/orgs","repos_url":"https://api.github.com/users/Siyfion/repos","events_url":"https://api.github.com/users/Siyfion/events{/privacy}","received_events_url":"https://api.github.com/users/Siyfion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kangax/fabric.js/labels/feature","name":"feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-04-11T11:51:10Z","updated_at":"2015-09-01T15:21:23Z","closed_at":null,"body":"Would it not be nice to also be able to set the canvas height or width to a percentage value? I know this means that internally an event would need to take place on window resize to update the width and height, but is it not worth it?\r\n\r\n``` javascript\r\ncanvas.setWidth('100%');\r\ncanvas.setHeight('80%');\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1593261-support-percentage-width-height-values-on-the-canvas?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/136758350","html_url":"https://github.com/kangax/fabric.js/issues/1270#issuecomment-136758350","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/1270","id":136758350,"user":{"login":"andycochran","id":409279,"avatar_url":"https://avatars.githubusercontent.com/u/409279?v=3","gravatar_id":"","url":"https://api.github.com/users/andycochran","html_url":"https://github.com/andycochran","followers_url":"https://api.github.com/users/andycochran/followers","following_url":"https://api.github.com/users/andycochran/following{/other_user}","gists_url":"https://api.github.com/users/andycochran/gists{/gist_id}","starred_url":"https://api.github.com/users/andycochran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andycochran/subscriptions","organizations_url":"https://api.github.com/users/andycochran/orgs","repos_url":"https://api.github.com/users/andycochran/repos","events_url":"https://api.github.com/users/andycochran/events{/privacy}","received_events_url":"https://api.github.com/users/andycochran/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T15:21:23Z","updated_at":"2015-09-01T15:21:23Z","body":"+1"}}