{"action":"closed","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/1009","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/1009/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/1009/events","html_url":"https://github.com/plotly/plotly.js/issues/1009","id":181106041,"number":1009,"title":"relayout not working in certain cases","user":{"login":"fresheneesz","id":149531,"avatar_url":"https://avatars.githubusercontent.com/u/149531?v=3","gravatar_id":"","url":"https://api.github.com/users/fresheneesz","html_url":"https://github.com/fresheneesz","followers_url":"https://api.github.com/users/fresheneesz/followers","following_url":"https://api.github.com/users/fresheneesz/following{/other_user}","gists_url":"https://api.github.com/users/fresheneesz/gists{/gist_id}","starred_url":"https://api.github.com/users/fresheneesz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fresheneesz/subscriptions","organizations_url":"https://api.github.com/users/fresheneesz/orgs","repos_url":"https://api.github.com/users/fresheneesz/repos","events_url":"https://api.github.com/users/fresheneesz/events{/privacy}","received_events_url":"https://api.github.com/users/fresheneesz/received_events","type":"User","site_admin":false},"labels":[{"id":282886923,"url":"https://api.github.com/repos/plotly/plotly.js/labels/type:%20bug","name":"type: bug","color":"e31a1c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-05T09:33:44Z","updated_at":"2017-02-10T18:22:56Z","closed_at":"2017-02-10T18:22:56Z","body":"I have this code that fails to relayout the width and height when an annotation is present: \n\nhttp://codepen.io/anon/pen/RGxagY?editors=102\n\n```\n<head>\n  <script src=\"https://cdn.plot.ly/plotly-1.0.0.min.js\"></script>\n</head>\n<body>\n  <div id=\"graph\"></div>\n</body>\n<script>\nvar x = document.createElement('div')\n\nvar layout = {annotations: [\n    {text:'My Annotation', arrowcolor: 'orange', font:{color:'orange'},\n     x:2, y: 2\n    }\n  ]\n}\n\nPlotly.newPlot(x, [{x: [1,2,3],y: [1,2,3],type: 'scatter'}], layout)\n\ndocument.body.appendChild(x)\n\nlayout.width = 100\nlayout.height = 100\n\nPlotly.relayout(x,layout)\n</script>\n```\n"}}
{"actor":{"display_login":"etpinard"}}