{"action":"closed","issue":{"url":"https://api.github.com/repos/vega/vega/issues/292","labels_url":"https://api.github.com/repos/vega/vega/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/292/comments","events_url":"https://api.github.com/repos/vega/vega/issues/292/events","html_url":"https://github.com/vega/vega/issues/292","id":94359290,"number":292,"title":"Strict size no longer matches the specified size","user":{"login":"ajturner","id":1218,"avatar_url":"https://avatars.githubusercontent.com/u/1218?v=3","gravatar_id":"","url":"https://api.github.com/users/ajturner","html_url":"https://github.com/ajturner","followers_url":"https://api.github.com/users/ajturner/followers","following_url":"https://api.github.com/users/ajturner/following{/other_user}","gists_url":"https://api.github.com/users/ajturner/gists{/gist_id}","starred_url":"https://api.github.com/users/ajturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajturner/subscriptions","organizations_url":"https://api.github.com/users/ajturner/orgs","repos_url":"https://api.github.com/users/ajturner/repos","events_url":"https://api.github.com/users/ajturner/events{/privacy}","received_events_url":"https://api.github.com/users/ajturner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T18:00:12Z","updated_at":"2015-07-10T18:37:03Z","closed_at":"2015-07-10T18:37:02Z","body":"Setting `chart.width(300).height(300).update()` on a chart with `padding:strict` and no height/width is sized incorrectly. Based on the notes below, there seems to be an issue with how autopad is being calculated.\r\n\r\n_This is a breaking change in Vega2_\r\n\r\n[Demo of working in Vega 1.5](http://jsfiddle.net/c2k3L1vj/)\r\n\r\n![edit_fiddle_-_jsfiddle](https://cloud.githubusercontent.com/assets/1218/8625261/a38fb292-270b-11e5-9623-6d29114f8889.png)\r\n\r\n[Demo of broken in Vega 2](http://jsfiddle.net/96mmr4gL/1/)\r\n![edit_fiddle_-_jsfiddle](https://cloud.githubusercontent.com/assets/1218/8625217/4222b18a-270b-11e5-8c8e-94854b989afd.png)\r\n\r\n## Sizing up\r\n\r\nhowever if you set the width: 600, height: 500 - then it fits the box in Vega2\r\n\r\n![edit_fiddle_-_jsfiddle](https://cloud.githubusercontent.com/assets/1218/8625289/d899bca8-270b-11e5-92cc-14d5a6d67991.png)\r\n\r\nbut if you keep going up to height: 1000 it oversizes (not cuts off bottom of chart)\r\n\r\n![edit_fiddle_-_jsfiddle](https://cloud.githubusercontent.com/assets/1218/8625298/ef117c96-270b-11e5-8f54-010225af7471.png)\r\n\r\n\r\n"}}