{"action":"closed","issue":{"url":"https://api.github.com/repos/toxicFork/react-three-renderer/issues/222","repository_url":"https://api.github.com/repos/toxicFork/react-three-renderer","labels_url":"https://api.github.com/repos/toxicFork/react-three-renderer/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/toxicFork/react-three-renderer/issues/222/comments","events_url":"https://api.github.com/repos/toxicFork/react-three-renderer/issues/222/events","html_url":"https://github.com/toxicFork/react-three-renderer/issues/222","id":307394787,"number":222,"title":"Canvas should resize when width or height properties change.","user":{"login":"Tenkir","id":3649828,"avatar_url":"https://avatars3.githubusercontent.com/u/3649828?v=4","gravatar_id":"","url":"https://api.github.com/users/Tenkir","html_url":"https://github.com/Tenkir","followers_url":"https://api.github.com/users/Tenkir/followers","following_url":"https://api.github.com/users/Tenkir/following{/other_user}","gists_url":"https://api.github.com/users/Tenkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Tenkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tenkir/subscriptions","organizations_url":"https://api.github.com/users/Tenkir/orgs","repos_url":"https://api.github.com/users/Tenkir/repos","events_url":"https://api.github.com/users/Tenkir/events{/privacy}","received_events_url":"https://api.github.com/users/Tenkir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T19:52:43Z","updated_at":"2018-03-21T19:54:30Z","closed_at":"2018-03-21T19:54:29Z","author_association":"NONE","body":"## Current Behavior:\r\n\r\nWhen the `width` and `height` properties on `React3` are updated, the render canvas does not change size. It works fine when the renderer full screen, but when placed inside a container, does not.\r\n\r\n## Expected Behavior:\r\n\r\nWhen the height and width are changed, the render canvas and camera will update to the new resolution.\r\n\r\n## Sample Code:\r\n\r\n    class Rings extends Component {\r\n      render() {\r\n        const { height, width } = this.props;\r\n\r\n        return (\r\n          <React3\r\n            ...\r\n            width={width}\r\n            height={height}\r\n          >\r\n            ...\r\n          </React3>\r\n        );\r\n      }\r\n    }"}}
{"actor":{"display_login":"Tenkir"}}