{"action":"created","comment":{"url":"https://api.github.com/repos/plotly/plotly.js/pulls/comments/65090524","id":65090524,"diff_hunk":"@@ -786,4 +786,29 @@ describe('Test plot api', function() {\n             expect(gd.data[1].contours).toBeUndefined();\n         });\n     });\n+\n+    describe('Plotly.newPlot', function() {\n+        var gd;\n+\n+        beforeEach(function() {\n+            gd = createGraphDiv();\n+        });\n+\n+        afterEach(destroyGraphDiv);\n+\n+        it('should respect layout.width and layout.height', function(done) {\n+\n+            // See issue https://github.com/plotly/plotly.js/issues/537\n+            var data = [{\n+                x: [1, 2],\n+                y: [1, 2]\n+            }];\n+\n+            Plotly.plot(gd, data).then(function() {\n+                Plotly.newPlot(gd, data, { height: 50 }).then(function() {\n+                    expect(gd._fullLayout.height).toBe(50);","path":"test/jasmine/tests/plot_api_test.js","position":24,"original_position":24,"commit_id":"9c2a0d96166f1aca13fc84cab48002106cfa1d72","original_commit_id":"9c2a0d96166f1aca13fc84cab48002106cfa1d72","user":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"body":"we should also check to `svg` attributes too to make sure that it updated properly.","created_at":"2016-05-30T16:22:09Z","updated_at":"2016-05-30T16:22:09Z","html_url":"https://github.com/plotly/plotly.js/pull/577#discussion_r65090524","pull_request_url":"https://api.github.com/repos/plotly/plotly.js/pulls/577","_links":{"self":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/comments/65090524"},"html":{"href":"https://github.com/plotly/plotly.js/pull/577#discussion_r65090524"},"pull_request":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/577"}}},"pull_request":{"url":"https://api.github.com/repos/plotly/plotly.js/pulls/577","id":71763796,"html_url":"https://github.com/plotly/plotly.js/pull/577","diff_url":"https://github.com/plotly/plotly.js/pull/577.diff","patch_url":"https://github.com/plotly/plotly.js/pull/577.patch","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/577","number":577,"state":"open","locked":false,"title":"Remove internal option layout.autosize='initial' (Fixes #537)","user":{"login":"n-riesco","id":6199391,"avatar_url":"https://avatars.githubusercontent.com/u/6199391?v=3","gravatar_id":"","url":"https://api.github.com/users/n-riesco","html_url":"https://github.com/n-riesco","followers_url":"https://api.github.com/users/n-riesco/followers","following_url":"https://api.github.com/users/n-riesco/following{/other_user}","gists_url":"https://api.github.com/users/n-riesco/gists{/gist_id}","starred_url":"https://api.github.com/users/n-riesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-riesco/subscriptions","organizations_url":"https://api.github.com/users/n-riesco/orgs","repos_url":"https://api.github.com/users/n-riesco/repos","events_url":"https://api.github.com/users/n-riesco/events{/privacy}","received_events_url":"https://api.github.com/users/n-riesco/received_events","type":"User","site_admin":false},"body":"* Moved initial call to `plotAutoSize` into `Plots.supplyDefaults(gd)`.\r\n\r\n* Replaced `{ autosize: 'initial' }` with the flag\r\n  `gd._fullLayout._initialAutoSizeIsDone`.\r\n\r\n* `{ autosize: false }` the values of width and height undefined in\r\n  `gd.layout` will be autosized only once.\r\n\r\n* `{ autosize: true }` only autosizes the values of width and height\r\n  undefined in `gd.layout`.\r\n\r\nFixes #537","created_at":"2016-05-27T19:46:43Z","updated_at":"2016-05-30T16:22:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d29a4f02fa00c396c331b151319e82a747122dbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plotly/plotly.js/pulls/577/commits","review_comments_url":"https://api.github.com/repos/plotly/plotly.js/pulls/577/comments","review_comment_url":"https://api.github.com/repos/plotly/plotly.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/577/comments","statuses_url":"https://api.github.com/repos/plotly/plotly.js/statuses/9c2a0d96166f1aca13fc84cab48002106cfa1d72","head":{"label":"n-riesco:remove-autosize-initial","ref":"remove-autosize-initial","sha":"9c2a0d96166f1aca13fc84cab48002106cfa1d72","user":{"login":"n-riesco","id":6199391,"avatar_url":"https://avatars.githubusercontent.com/u/6199391?v=3","gravatar_id":"","url":"https://api.github.com/users/n-riesco","html_url":"https://github.com/n-riesco","followers_url":"https://api.github.com/users/n-riesco/followers","following_url":"https://api.github.com/users/n-riesco/following{/other_user}","gists_url":"https://api.github.com/users/n-riesco/gists{/gist_id}","starred_url":"https://api.github.com/users/n-riesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-riesco/subscriptions","organizations_url":"https://api.github.com/users/n-riesco/orgs","repos_url":"https://api.github.com/users/n-riesco/repos","events_url":"https://api.github.com/users/n-riesco/events{/privacy}","received_events_url":"https://api.github.com/users/n-riesco/received_events","type":"User","site_admin":false},"repo":{"id":55012447,"name":"plotly.js","full_name":"n-riesco/plotly.js","owner":{"login":"n-riesco","id":6199391,"avatar_url":"https://avatars.githubusercontent.com/u/6199391?v=3","gravatar_id":"","url":"https://api.github.com/users/n-riesco","html_url":"https://github.com/n-riesco","followers_url":"https://api.github.com/users/n-riesco/followers","following_url":"https://api.github.com/users/n-riesco/following{/other_user}","gists_url":"https://api.github.com/users/n-riesco/gists{/gist_id}","starred_url":"https://api.github.com/users/n-riesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-riesco/subscriptions","organizations_url":"https://api.github.com/users/n-riesco/orgs","repos_url":"https://api.github.com/users/n-riesco/repos","events_url":"https://api.github.com/users/n-riesco/events{/privacy}","received_events_url":"https://api.github.com/users/n-riesco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/n-riesco/plotly.js","description":"The open source javascript graphing library that powers plotly","fork":true,"url":"https://api.github.com/repos/n-riesco/plotly.js","forks_url":"https://api.github.com/repos/n-riesco/plotly.js/forks","keys_url":"https://api.github.com/repos/n-riesco/plotly.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/n-riesco/plotly.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/n-riesco/plotly.js/teams","hooks_url":"https://api.github.com/repos/n-riesco/plotly.js/hooks","issue_events_url":"https://api.github.com/repos/n-riesco/plotly.js/issues/events{/number}","events_url":"https://api.github.com/repos/n-riesco/plotly.js/events","assignees_url":"https://api.github.com/repos/n-riesco/plotly.js/assignees{/user}","branches_url":"https://api.github.com/repos/n-riesco/plotly.js/branches{/branch}","tags_url":"https://api.github.com/repos/n-riesco/plotly.js/tags","blobs_url":"https://api.github.com/repos/n-riesco/plotly.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/n-riesco/plotly.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/n-riesco/plotly.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/n-riesco/plotly.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/n-riesco/plotly.js/statuses/{sha}","languages_url":"https://api.github.com/repos/n-riesco/plotly.js/languages","stargazers_url":"https://api.github.com/repos/n-riesco/plotly.js/stargazers","contributors_url":"https://api.github.com/repos/n-riesco/plotly.js/contributors","subscribers_url":"https://api.github.com/repos/n-riesco/plotly.js/subscribers","subscription_url":"https://api.github.com/repos/n-riesco/plotly.js/subscription","commits_url":"https://api.github.com/repos/n-riesco/plotly.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/n-riesco/plotly.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/n-riesco/plotly.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/n-riesco/plotly.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/n-riesco/plotly.js/contents/{+path}","compare_url":"https://api.github.com/repos/n-riesco/plotly.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/n-riesco/plotly.js/merges","archive_url":"https://api.github.com/repos/n-riesco/plotly.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/n-riesco/plotly.js/downloads","issues_url":"https://api.github.com/repos/n-riesco/plotly.js/issues{/number}","pulls_url":"https://api.github.com/repos/n-riesco/plotly.js/pulls{/number}","milestones_url":"https://api.github.com/repos/n-riesco/plotly.js/milestones{/number}","notifications_url":"https://api.github.com/repos/n-riesco/plotly.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/n-riesco/plotly.js/labels{/name}","releases_url":"https://api.github.com/repos/n-riesco/plotly.js/releases{/id}","deployments_url":"https://api.github.com/repos/n-riesco/plotly.js/deployments","created_at":"2016-03-29T21:41:41Z","updated_at":"2016-03-29T21:41:44Z","pushed_at":"2016-05-27T19:44:19Z","git_url":"git://github.com/n-riesco/plotly.js.git","ssh_url":"git@github.com:n-riesco/plotly.js.git","clone_url":"https://github.com/n-riesco/plotly.js.git","svn_url":"https://github.com/n-riesco/plotly.js","homepage":"https://plot.ly/javascript/","size":110031,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"plotly:master","ref":"master","sha":"b5c98271d32647364cf46b338003a077ad781292","user":{"login":"plotly","id":5997976,"avatar_url":"https://avatars.githubusercontent.com/u/5997976?v=3","gravatar_id":"","url":"https://api.github.com/users/plotly","html_url":"https://github.com/plotly","followers_url":"https://api.github.com/users/plotly/followers","following_url":"https://api.github.com/users/plotly/following{/other_user}","gists_url":"https://api.github.com/users/plotly/gists{/gist_id}","starred_url":"https://api.github.com/users/plotly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plotly/subscriptions","organizations_url":"https://api.github.com/users/plotly/orgs","repos_url":"https://api.github.com/users/plotly/repos","events_url":"https://api.github.com/users/plotly/events{/privacy}","received_events_url":"https://api.github.com/users/plotly/received_events","type":"Organization","site_admin":false},"repo":{"id":45646037,"name":"plotly.js","full_name":"plotly/plotly.js","owner":{"login":"plotly","id":5997976,"avatar_url":"https://avatars.githubusercontent.com/u/5997976?v=3","gravatar_id":"","url":"https://api.github.com/users/plotly","html_url":"https://github.com/plotly","followers_url":"https://api.github.com/users/plotly/followers","following_url":"https://api.github.com/users/plotly/following{/other_user}","gists_url":"https://api.github.com/users/plotly/gists{/gist_id}","starred_url":"https://api.github.com/users/plotly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plotly/subscriptions","organizations_url":"https://api.github.com/users/plotly/orgs","repos_url":"https://api.github.com/users/plotly/repos","events_url":"https://api.github.com/users/plotly/events{/privacy}","received_events_url":"https://api.github.com/users/plotly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plotly/plotly.js","description":"The open source javascript graphing library that powers plotly","fork":false,"url":"https://api.github.com/repos/plotly/plotly.js","forks_url":"https://api.github.com/repos/plotly/plotly.js/forks","keys_url":"https://api.github.com/repos/plotly/plotly.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plotly/plotly.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plotly/plotly.js/teams","hooks_url":"https://api.github.com/repos/plotly/plotly.js/hooks","issue_events_url":"https://api.github.com/repos/plotly/plotly.js/issues/events{/number}","events_url":"https://api.github.com/repos/plotly/plotly.js/events","assignees_url":"https://api.github.com/repos/plotly/plotly.js/assignees{/user}","branches_url":"https://api.github.com/repos/plotly/plotly.js/branches{/branch}","tags_url":"https://api.github.com/repos/plotly/plotly.js/tags","blobs_url":"https://api.github.com/repos/plotly/plotly.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plotly/plotly.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plotly/plotly.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/plotly/plotly.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plotly/plotly.js/statuses/{sha}","languages_url":"https://api.github.com/repos/plotly/plotly.js/languages","stargazers_url":"https://api.github.com/repos/plotly/plotly.js/stargazers","contributors_url":"https://api.github.com/repos/plotly/plotly.js/contributors","subscribers_url":"https://api.github.com/repos/plotly/plotly.js/subscribers","subscription_url":"https://api.github.com/repos/plotly/plotly.js/subscription","commits_url":"https://api.github.com/repos/plotly/plotly.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/plotly/plotly.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/plotly/plotly.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/plotly/plotly.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/plotly/plotly.js/contents/{+path}","compare_url":"https://api.github.com/repos/plotly/plotly.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plotly/plotly.js/merges","archive_url":"https://api.github.com/repos/plotly/plotly.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plotly/plotly.js/downloads","issues_url":"https://api.github.com/repos/plotly/plotly.js/issues{/number}","pulls_url":"https://api.github.com/repos/plotly/plotly.js/pulls{/number}","milestones_url":"https://api.github.com/repos/plotly/plotly.js/milestones{/number}","notifications_url":"https://api.github.com/repos/plotly/plotly.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plotly/plotly.js/labels{/name}","releases_url":"https://api.github.com/repos/plotly/plotly.js/releases{/id}","deployments_url":"https://api.github.com/repos/plotly/plotly.js/deployments","created_at":"2015-11-05T23:27:17Z","updated_at":"2016-05-30T14:48:39Z","pushed_at":"2016-05-30T14:54:48Z","git_url":"git://github.com/plotly/plotly.js.git","ssh_url":"git@github.com:plotly/plotly.js.git","clone_url":"https://github.com/plotly/plotly.js.git","svn_url":"https://github.com/plotly/plotly.js","homepage":"https://plot.ly/javascript/","size":115377,"stargazers_count":4726,"watchers_count":4726,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":381,"mirror_url":null,"open_issues_count":140,"forks":381,"open_issues":140,"watchers":4726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/577"},"html":{"href":"https://github.com/plotly/plotly.js/pull/577"},"issue":{"href":"https://api.github.com/repos/plotly/plotly.js/issues/577"},"comments":{"href":"https://api.github.com/repos/plotly/plotly.js/issues/577/comments"},"review_comments":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/577/comments"},"review_comment":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plotly/plotly.js/pulls/577/commits"},"statuses":{"href":"https://api.github.com/repos/plotly/plotly.js/statuses/9c2a0d96166f1aca13fc84cab48002106cfa1d72"}}}}
{"actor":{"display_login":"etpinard"}}