{"action":"created","comment":{"url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/comments/130799417","pull_request_review_id":53713148,"id":130799417,"diff_hunk":"@@ -355,8 +355,51 @@ $(document).ready(function () {\n     // Center and reset node view\n     resetZoomButton.click(() => nodeView.centerNode());\n \n+    // Clear any saved splitter-related div widths from local storage when the app closes.\n+    const clearDivs = () => {\n+        if ('localStorage' in window && window['localStorage'] !== null) {\n+            localStorage.removeItem('splitSizes');\n+        }\n+    }\n+\n+    window.addEventListener('beforeunload', function (event) {\n+        clearDivs();\n+    });\n+\n+    // Used in the split.js onDragEnd property below.\n+    const saveResize = () => {\n+        localStorage.setItem('splitSizes', JSON.stringify(instance.getSizes()));\n+    }\n+\n+    // Instantiate the splitter.\n+    const instance = Split(['#leftCol', '#tabbar'], {\n+        sizes: [18, 76],\n+        minSize: 200,\n+        gutterSize: 5,\n+        onDragEnd: saveResize\n+    });\n+\n+    // Retrieve any saved resize settings from localStorage or else use our default setting.\n+    function getDivs() {\n+        if (localStorage.getItem('splitSizes')) {\n+            var dataSet;","path":"assets/js/renderer.js","position":31,"original_position":31,"commit_id":"a07b414631e904a4c75782b6a7608641bd2820cb","original_commit_id":"a07b414631e904a4c75782b6a7608641bd2820cb","user":{"login":"jdaguil","id":4239800,"avatar_url":"https://avatars1.githubusercontent.com/u/4239800?v=4","gravatar_id":"","url":"https://api.github.com/users/jdaguil","html_url":"https://github.com/jdaguil","followers_url":"https://api.github.com/users/jdaguil/followers","following_url":"https://api.github.com/users/jdaguil/following{/other_user}","gists_url":"https://api.github.com/users/jdaguil/gists{/gist_id}","starred_url":"https://api.github.com/users/jdaguil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdaguil/subscriptions","organizations_url":"https://api.github.com/users/jdaguil/orgs","repos_url":"https://api.github.com/users/jdaguil/repos","events_url":"https://api.github.com/users/jdaguil/events{/privacy}","received_events_url":"https://api.github.com/users/jdaguil/received_events","type":"User","site_admin":false},"body":"`dataSet` should be renamed to something more descriptive, e.g. `splitSizes`","created_at":"2017-08-02T07:00:52Z","updated_at":"2017-08-02T07:00:52Z","html_url":"https://github.com/nexB/aboutcode-manager/pull/140#discussion_r130799417","pull_request_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/comments/130799417"},"html":{"href":"https://github.com/nexB/aboutcode-manager/pull/140#discussion_r130799417"},"pull_request":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140","id":133533066,"html_url":"https://github.com/nexB/aboutcode-manager/pull/140","diff_url":"https://github.com/nexB/aboutcode-manager/pull/140.diff","patch_url":"https://github.com/nexB/aboutcode-manager/pull/140.patch","issue_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/140","number":140,"state":"open","locked":false,"title":"Add ability to resize the views #21","user":{"login":"johnmhoran","id":11096678,"avatar_url":"https://avatars0.githubusercontent.com/u/11096678?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmhoran","html_url":"https://github.com/johnmhoran","followers_url":"https://api.github.com/users/johnmhoran/followers","following_url":"https://api.github.com/users/johnmhoran/following{/other_user}","gists_url":"https://api.github.com/users/johnmhoran/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmhoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmhoran/subscriptions","organizations_url":"https://api.github.com/users/johnmhoran/orgs","repos_url":"https://api.github.com/users/johnmhoran/repos","events_url":"https://api.github.com/users/johnmhoran/events{/privacy}","received_events_url":"https://api.github.com/users/johnmhoran/received_events","type":"User","site_admin":false},"body":"* The user can now resize the Tree and Table/Node views.\r\n* Resize settings are captured and saved as JSON in `localStorage` during a browser session.\r\n* The Component Summary view is displayed full-width by assigning a separate div-width setting.\r\n* Navigating back to the Tree and Table/Node views retrieves any saved settings from `localStorage`.\r\n* Any saved settings are cleared when AboutCode Manager is closed.","created_at":"2017-08-01T17:51:42Z","updated_at":"2017-08-02T07:00:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"jdaguil","id":4239800,"avatar_url":"https://avatars1.githubusercontent.com/u/4239800?v=4","gravatar_id":"","url":"https://api.github.com/users/jdaguil","html_url":"https://github.com/jdaguil","followers_url":"https://api.github.com/users/jdaguil/followers","following_url":"https://api.github.com/users/jdaguil/following{/other_user}","gists_url":"https://api.github.com/users/jdaguil/gists{/gist_id}","starred_url":"https://api.github.com/users/jdaguil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdaguil/subscriptions","organizations_url":"https://api.github.com/users/jdaguil/orgs","repos_url":"https://api.github.com/users/jdaguil/repos","events_url":"https://api.github.com/users/jdaguil/events{/privacy}","received_events_url":"https://api.github.com/users/jdaguil/received_events","type":"User","site_admin":false},"assignees":[{"login":"jdaguil","id":4239800,"avatar_url":"https://avatars1.githubusercontent.com/u/4239800?v=4","gravatar_id":"","url":"https://api.github.com/users/jdaguil","html_url":"https://github.com/jdaguil","followers_url":"https://api.github.com/users/jdaguil/followers","following_url":"https://api.github.com/users/jdaguil/following{/other_user}","gists_url":"https://api.github.com/users/jdaguil/gists{/gist_id}","starred_url":"https://api.github.com/users/jdaguil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdaguil/subscriptions","organizations_url":"https://api.github.com/users/jdaguil/orgs","repos_url":"https://api.github.com/users/jdaguil/repos","events_url":"https://api.github.com/users/jdaguil/events{/privacy}","received_events_url":"https://api.github.com/users/jdaguil/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140/commits","review_comments_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140/comments","review_comment_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/140/comments","statuses_url":"https://api.github.com/repos/nexB/aboutcode-manager/statuses/a07b414631e904a4c75782b6a7608641bd2820cb","head":{"label":"nexB:21-resize-views","ref":"21-resize-views","sha":"a07b414631e904a4c75782b6a7608641bd2820cb","user":{"login":"nexB","id":10789967,"avatar_url":"https://avatars3.githubusercontent.com/u/10789967?v=4","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"repo":{"id":70834613,"name":"aboutcode-manager","full_name":"nexB/aboutcode-manager","owner":{"login":"nexB","id":10789967,"avatar_url":"https://avatars3.githubusercontent.com/u/10789967?v=4","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexB/aboutcode-manager","description":"AboutCode Manager provides a UI to help you quickly evaluate license and other notices identified by ScanCode and record your conclusion about the effective license(s) for a software component.","fork":false,"url":"https://api.github.com/repos/nexB/aboutcode-manager","forks_url":"https://api.github.com/repos/nexB/aboutcode-manager/forks","keys_url":"https://api.github.com/repos/nexB/aboutcode-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexB/aboutcode-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexB/aboutcode-manager/teams","hooks_url":"https://api.github.com/repos/nexB/aboutcode-manager/hooks","issue_events_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/events{/number}","events_url":"https://api.github.com/repos/nexB/aboutcode-manager/events","assignees_url":"https://api.github.com/repos/nexB/aboutcode-manager/assignees{/user}","branches_url":"https://api.github.com/repos/nexB/aboutcode-manager/branches{/branch}","tags_url":"https://api.github.com/repos/nexB/aboutcode-manager/tags","blobs_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexB/aboutcode-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/nexB/aboutcode-manager/languages","stargazers_url":"https://api.github.com/repos/nexB/aboutcode-manager/stargazers","contributors_url":"https://api.github.com/repos/nexB/aboutcode-manager/contributors","subscribers_url":"https://api.github.com/repos/nexB/aboutcode-manager/subscribers","subscription_url":"https://api.github.com/repos/nexB/aboutcode-manager/subscription","commits_url":"https://api.github.com/repos/nexB/aboutcode-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexB/aboutcode-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexB/aboutcode-manager/contents/{+path}","compare_url":"https://api.github.com/repos/nexB/aboutcode-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexB/aboutcode-manager/merges","archive_url":"https://api.github.com/repos/nexB/aboutcode-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexB/aboutcode-manager/downloads","issues_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues{/number}","pulls_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/nexB/aboutcode-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/nexB/aboutcode-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexB/aboutcode-manager/labels{/name}","releases_url":"https://api.github.com/repos/nexB/aboutcode-manager/releases{/id}","deployments_url":"https://api.github.com/repos/nexB/aboutcode-manager/deployments","created_at":"2016-10-13T18:10:59Z","updated_at":"2017-06-15T18:43:27Z","pushed_at":"2017-08-02T00:57:47Z","git_url":"git://github.com/nexB/aboutcode-manager.git","ssh_url":"git@github.com:nexB/aboutcode-manager.git","clone_url":"https://github.com/nexB/aboutcode-manager.git","svn_url":"https://github.com/nexB/aboutcode-manager","homepage":"https://github.com/nexB/aboutcode-manager/releases/latest","size":8315,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":57,"forks":5,"open_issues":57,"watchers":10,"default_branch":"develop"}},"base":{"label":"nexB:develop","ref":"develop","sha":"2b362eb659a075869d93a7ada77fea3b33229959","user":{"login":"nexB","id":10789967,"avatar_url":"https://avatars3.githubusercontent.com/u/10789967?v=4","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"repo":{"id":70834613,"name":"aboutcode-manager","full_name":"nexB/aboutcode-manager","owner":{"login":"nexB","id":10789967,"avatar_url":"https://avatars3.githubusercontent.com/u/10789967?v=4","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexB/aboutcode-manager","description":"AboutCode Manager provides a UI to help you quickly evaluate license and other notices identified by ScanCode and record your conclusion about the effective license(s) for a software component.","fork":false,"url":"https://api.github.com/repos/nexB/aboutcode-manager","forks_url":"https://api.github.com/repos/nexB/aboutcode-manager/forks","keys_url":"https://api.github.com/repos/nexB/aboutcode-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexB/aboutcode-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexB/aboutcode-manager/teams","hooks_url":"https://api.github.com/repos/nexB/aboutcode-manager/hooks","issue_events_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/events{/number}","events_url":"https://api.github.com/repos/nexB/aboutcode-manager/events","assignees_url":"https://api.github.com/repos/nexB/aboutcode-manager/assignees{/user}","branches_url":"https://api.github.com/repos/nexB/aboutcode-manager/branches{/branch}","tags_url":"https://api.github.com/repos/nexB/aboutcode-manager/tags","blobs_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexB/aboutcode-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/nexB/aboutcode-manager/languages","stargazers_url":"https://api.github.com/repos/nexB/aboutcode-manager/stargazers","contributors_url":"https://api.github.com/repos/nexB/aboutcode-manager/contributors","subscribers_url":"https://api.github.com/repos/nexB/aboutcode-manager/subscribers","subscription_url":"https://api.github.com/repos/nexB/aboutcode-manager/subscription","commits_url":"https://api.github.com/repos/nexB/aboutcode-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexB/aboutcode-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexB/aboutcode-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexB/aboutcode-manager/contents/{+path}","compare_url":"https://api.github.com/repos/nexB/aboutcode-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexB/aboutcode-manager/merges","archive_url":"https://api.github.com/repos/nexB/aboutcode-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexB/aboutcode-manager/downloads","issues_url":"https://api.github.com/repos/nexB/aboutcode-manager/issues{/number}","pulls_url":"https://api.github.com/repos/nexB/aboutcode-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/nexB/aboutcode-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/nexB/aboutcode-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexB/aboutcode-manager/labels{/name}","releases_url":"https://api.github.com/repos/nexB/aboutcode-manager/releases{/id}","deployments_url":"https://api.github.com/repos/nexB/aboutcode-manager/deployments","created_at":"2016-10-13T18:10:59Z","updated_at":"2017-06-15T18:43:27Z","pushed_at":"2017-08-02T00:57:47Z","git_url":"git://github.com/nexB/aboutcode-manager.git","ssh_url":"git@github.com:nexB/aboutcode-manager.git","clone_url":"https://github.com/nexB/aboutcode-manager.git","svn_url":"https://github.com/nexB/aboutcode-manager","homepage":"https://github.com/nexB/aboutcode-manager/releases/latest","size":8315,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":57,"forks":5,"open_issues":57,"watchers":10,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140"},"html":{"href":"https://github.com/nexB/aboutcode-manager/pull/140"},"issue":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/issues/140"},"comments":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/nexB/aboutcode-manager/statuses/a07b414631e904a4c75782b6a7608641bd2820cb"}}}}
{"actor":{"display_login":"jdaguil"}}