{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/2860","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/2860/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/2860/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/2860/events","html_url":"https://github.com/kangax/fabric.js/issues/2860","id":144066813,"number":2860,"title":"issue getWidth() and getHeight() not returning the correct number","user":{"login":"jtweku","id":9846072,"avatar_url":"https://avatars.githubusercontent.com/u/9846072?v=3","gravatar_id":"","url":"https://api.github.com/users/jtweku","html_url":"https://github.com/jtweku","followers_url":"https://api.github.com/users/jtweku/followers","following_url":"https://api.github.com/users/jtweku/following{/other_user}","gists_url":"https://api.github.com/users/jtweku/gists{/gist_id}","starred_url":"https://api.github.com/users/jtweku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtweku/subscriptions","organizations_url":"https://api.github.com/users/jtweku/orgs","repos_url":"https://api.github.com/users/jtweku/repos","events_url":"https://api.github.com/users/jtweku/events{/privacy}","received_events_url":"https://api.github.com/users/jtweku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T19:52:37Z","updated_at":"2016-03-28T19:53:36Z","closed_at":null,"body":"\r\n## Version\r\n1.6.0\r\n\r\n## Test Case\r\nhttp://jsfiddle.net/tLbsqcod/2/\r\n\r\n## Expected Behavior\r\ngetWidth() and getHeight() should return the width and height value of the object.\r\n\r\n## Actual Behavior\r\ngetWidth() and getHeight() returning the width and height value + 1, why ? "},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/202557184","html_url":"https://github.com/kangax/fabric.js/issues/2860#issuecomment-202557184","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/2860","id":202557184,"user":{"login":"onassar","id":612938,"avatar_url":"https://avatars.githubusercontent.com/u/612938?v=3","gravatar_id":"","url":"https://api.github.com/users/onassar","html_url":"https://github.com/onassar","followers_url":"https://api.github.com/users/onassar/followers","following_url":"https://api.github.com/users/onassar/following{/other_user}","gists_url":"https://api.github.com/users/onassar/gists{/gist_id}","starred_url":"https://api.github.com/users/onassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onassar/subscriptions","organizations_url":"https://api.github.com/users/onassar/orgs","repos_url":"https://api.github.com/users/onassar/repos","events_url":"https://api.github.com/users/onassar/events{/privacy}","received_events_url":"https://api.github.com/users/onassar/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T19:53:36Z","updated_at":"2016-03-28T19:53:36Z","body":"I ran into this in the past @jtweku\r\nIt's because the default strokeWidth is not 0. Set it this way, and things should be fine:\r\n`fabric.Object.prototype.strokeWidth = 0;`"}}