{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments/44499306","id":44499306,"diff_hunk":"@@ -1872,12 +2025,61 @@ $(function () {\n                 renderComponentToolbar(findComponent(id));\n             });\n             listenLayout();\n+            \n+            var gridsterContainer = $('.gridster > ul');\n+            \n+            var w = Math.ceil($('.gridster').width() / 12) - 10;","path":"apps/portal/js/designer.js","position":285,"original_position":285,"commit_id":"6549861e852a689a5d458d0abc8de11bde9faf35","original_commit_id":"6549861e852a689a5d458d0abc8de11bde9faf35","user":{"login":"manuranga","id":1686124,"avatar_url":"https://avatars.githubusercontent.com/u/1686124?v=3","gravatar_id":"","url":"https://api.github.com/users/manuranga","html_url":"https://github.com/manuranga","followers_url":"https://api.github.com/users/manuranga/followers","following_url":"https://api.github.com/users/manuranga/following{/other_user}","gists_url":"https://api.github.com/users/manuranga/gists{/gist_id}","starred_url":"https://api.github.com/users/manuranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuranga/subscriptions","organizations_url":"https://api.github.com/users/manuranga/orgs","repos_url":"https://api.github.com/users/manuranga/repos","events_url":"https://api.github.com/users/manuranga/events{/privacy}","received_events_url":"https://api.github.com/users/manuranga/received_events","type":"User","site_admin":false},"body":"better to have a more meaningful name than w, eg minBlockWidth","created_at":"2015-11-11T03:49:43Z","updated_at":"2015-11-11T03:49:43Z","html_url":"https://github.com/wso2/carbon-dashboards/pull/81#discussion_r44499306","pull_request_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments/44499306"},"html":{"href":"https://github.com/wso2/carbon-dashboards/pull/81#discussion_r44499306"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81","id":49786064,"html_url":"https://github.com/wso2/carbon-dashboards/pull/81","diff_url":"https://github.com/wso2/carbon-dashboards/pull/81.diff","patch_url":"https://github.com/wso2/carbon-dashboards/pull/81.patch","issue_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/81","number":81,"state":"open","locked":false,"title":"Added dynamic dashboard layouts","user":{"login":"lasanthaS","id":2142703,"avatar_url":"https://avatars.githubusercontent.com/u/2142703?v=3","gravatar_id":"","url":"https://api.github.com/users/lasanthaS","html_url":"https://github.com/lasanthaS","followers_url":"https://api.github.com/users/lasanthaS/followers","following_url":"https://api.github.com/users/lasanthaS/following{/other_user}","gists_url":"https://api.github.com/users/lasanthaS/gists{/gist_id}","starred_url":"https://api.github.com/users/lasanthaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasanthaS/subscriptions","organizations_url":"https://api.github.com/users/lasanthaS/orgs","repos_url":"https://api.github.com/users/lasanthaS/repos","events_url":"https://api.github.com/users/lasanthaS/events{/privacy}","received_events_url":"https://api.github.com/users/lasanthaS/received_events","type":"User","site_admin":false},"body":"1. Added dynamic dashboard layouts\r\n2. Modified the existing layouts to be compatible with the dynamic layouts","created_at":"2015-11-05T06:10:28Z","updated_at":"2015-11-11T03:49:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e37919eacffefc4aa5a4406732eaaaeffc2e740c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/81/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/6549861e852a689a5d458d0abc8de11bde9faf35","head":{"label":"lasanthaS:master","ref":"master","sha":"6549861e852a689a5d458d0abc8de11bde9faf35","user":{"login":"lasanthaS","id":2142703,"avatar_url":"https://avatars.githubusercontent.com/u/2142703?v=3","gravatar_id":"","url":"https://api.github.com/users/lasanthaS","html_url":"https://github.com/lasanthaS","followers_url":"https://api.github.com/users/lasanthaS/followers","following_url":"https://api.github.com/users/lasanthaS/following{/other_user}","gists_url":"https://api.github.com/users/lasanthaS/gists{/gist_id}","starred_url":"https://api.github.com/users/lasanthaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasanthaS/subscriptions","organizations_url":"https://api.github.com/users/lasanthaS/orgs","repos_url":"https://api.github.com/users/lasanthaS/repos","events_url":"https://api.github.com/users/lasanthaS/events{/privacy}","received_events_url":"https://api.github.com/users/lasanthaS/received_events","type":"User","site_admin":false},"repo":{"id":42097924,"name":"carbon-dashboards","full_name":"lasanthaS/carbon-dashboards","owner":{"login":"lasanthaS","id":2142703,"avatar_url":"https://avatars.githubusercontent.com/u/2142703?v=3","gravatar_id":"","url":"https://api.github.com/users/lasanthaS","html_url":"https://github.com/lasanthaS","followers_url":"https://api.github.com/users/lasanthaS/followers","following_url":"https://api.github.com/users/lasanthaS/following{/other_user}","gists_url":"https://api.github.com/users/lasanthaS/gists{/gist_id}","starred_url":"https://api.github.com/users/lasanthaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasanthaS/subscriptions","organizations_url":"https://api.github.com/users/lasanthaS/orgs","repos_url":"https://api.github.com/users/lasanthaS/repos","events_url":"https://api.github.com/users/lasanthaS/events{/privacy}","received_events_url":"https://api.github.com/users/lasanthaS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lasanthaS/carbon-dashboards","description":"","fork":true,"url":"https://api.github.com/repos/lasanthaS/carbon-dashboards","forks_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/forks","keys_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/teams","hooks_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/hooks","issue_events_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/events","assignees_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/tags","blobs_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/languages","stargazers_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/stargazers","contributors_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/contributors","subscribers_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/subscribers","subscription_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/subscription","commits_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/merges","archive_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/downloads","issues_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/labels{/name}","releases_url":"https://api.github.com/repos/lasanthaS/carbon-dashboards/releases{/id}","created_at":"2015-09-08T07:49:18Z","updated_at":"2015-09-08T07:49:20Z","pushed_at":"2015-11-11T03:30:09Z","git_url":"git://github.com/lasanthaS/carbon-dashboards.git","ssh_url":"git@github.com:lasanthaS/carbon-dashboards.git","clone_url":"https://github.com/lasanthaS/carbon-dashboards.git","svn_url":"https://github.com/lasanthaS/carbon-dashboards","homepage":null,"size":4150,"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":"wso2:master","ref":"master","sha":"bc817ef45a5e33d928c4070f6528a47a1dcf7730","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":36008880,"name":"carbon-dashboards","full_name":"wso2/carbon-dashboards","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-dashboards","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-dashboards","forks_url":"https://api.github.com/repos/wso2/carbon-dashboards/forks","keys_url":"https://api.github.com/repos/wso2/carbon-dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-dashboards/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-dashboards/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-dashboards/events","assignees_url":"https://api.github.com/repos/wso2/carbon-dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-dashboards/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-dashboards/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-dashboards/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-dashboards/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-dashboards/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-dashboards/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-dashboards/merges","archive_url":"https://api.github.com/repos/wso2/carbon-dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-dashboards/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-dashboards/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-dashboards/releases{/id}","created_at":"2015-05-21T11:25:31Z","updated_at":"2015-10-02T18:18:51Z","pushed_at":"2015-11-11T03:30:10Z","git_url":"git://github.com/wso2/carbon-dashboards.git","ssh_url":"git@github.com:wso2/carbon-dashboards.git","clone_url":"https://github.com/wso2/carbon-dashboards.git","svn_url":"https://github.com/wso2/carbon-dashboards","homepage":null,"size":4896,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":3,"forks":26,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81"},"html":{"href":"https://github.com/wso2/carbon-dashboards/pull/81"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/issues/81"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/6549861e852a689a5d458d0abc8de11bde9faf35"}}}}