{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/352","labels_url":"https://api.github.com/repos/w3c/webcomponents/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webcomponents/issues/352/comments","events_url":"https://api.github.com/repos/w3c/webcomponents/issues/352/events","html_url":"https://github.com/w3c/webcomponents/issues/352","id":119101736,"number":352,"title":"Resize events needed?","user":{"login":"greggman","id":234804,"avatar_url":"https://avatars.githubusercontent.com/u/234804?v=3","gravatar_id":"","url":"https://api.github.com/users/greggman","html_url":"https://github.com/greggman","followers_url":"https://api.github.com/users/greggman/followers","following_url":"https://api.github.com/users/greggman/following{/other_user}","gists_url":"https://api.github.com/users/greggman/gists{/gist_id}","starred_url":"https://api.github.com/users/greggman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greggman/subscriptions","organizations_url":"https://api.github.com/users/greggman/orgs","repos_url":"https://api.github.com/users/greggman/repos","events_url":"https://api.github.com/users/greggman/events{/privacy}","received_events_url":"https://api.github.com/users/greggman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/webcomponents/labels/shadow-dom","name":"shadow-dom","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T21:00:10Z","updated_at":"2016-01-13T08:20:14Z","closed_at":"2016-01-13T08:20:14Z","body":"Sorry I'm out of the loop but this issue came up before and I have no idea if it has been addressed\r\n\r\nAssume you want to make a custom graphing element `<graph>`. To do this you use a canvas element wrapped in whatever is needed to make it a custom element. Anytime the element changes size the element's code needs to re-render the graph to fit the new size of the element.\r\n\r\nAs far as I am aware this is currently impossible. The only resize element is on `window` and there are plenty of other reasons an element might change size from css animations or other settings to flexboxes. A good example is Chrome's or Firefox's dev tools. Both of them have areas whose sizes can be changed without changing the size of the window. \r\n\r\n![graph](https://cloud.githubusercontent.com/assets/234804/11430556/cc98a3dc-94cb-11e5-8847-7f947b364c63.gif)\r\n\r\nFor example if the graph on the right was a custom element it would have no way to know it had been resized. It's only options are (1) require the user to notify it or (2) poll its size.\r\n\r\nHas this been addressed? One solution would be an element level resize event. Maybe there are others.\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/comments/171213288","html_url":"https://github.com/w3c/webcomponents/issues/352#issuecomment-171213288","issue_url":"https://api.github.com/repos/w3c/webcomponents/issues/352","id":171213288,"user":{"login":"hayatoito","id":160288,"avatar_url":"https://avatars.githubusercontent.com/u/160288?v=3","gravatar_id":"","url":"https://api.github.com/users/hayatoito","html_url":"https://github.com/hayatoito","followers_url":"https://api.github.com/users/hayatoito/followers","following_url":"https://api.github.com/users/hayatoito/following{/other_user}","gists_url":"https://api.github.com/users/hayatoito/gists{/gist_id}","starred_url":"https://api.github.com/users/hayatoito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayatoito/subscriptions","organizations_url":"https://api.github.com/users/hayatoito/orgs","repos_url":"https://api.github.com/users/hayatoito/repos","events_url":"https://api.github.com/users/hayatoito/events{/privacy}","received_events_url":"https://api.github.com/users/hayatoito/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T08:20:14Z","updated_at":"2016-01-13T08:20:14Z","body":"Yeah, it sounds that this should be handled by DOM Standard.\r\nLet me close this issue. Please feel free to file a bug to DOM Standard."}}