{"action":"created","comment":{"url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/comments/47572821","id":47572821,"diff_hunk":"@@ -47,7 +47,6 @@\n       position: relative;\n       width: 400px;\n       border: 1px solid;\n-      padding: 2px;","path":"iron-autogrow-textarea.html","position":4,"original_position":4,"commit_id":"792f4e1bef8df6d5e8938901274b6b1fec33f9f2","original_commit_id":"792f4e1bef8df6d5e8938901274b6b1fec33f9f2","user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"body":"Removing this padding renders the text and the cursor outside the border.\r\n\r\nBefore (in https://elements.polymer-project.org/elements/iron-autogrow-textarea?view=demo:demo/index.html&active=iron-autogrow-textarea):\r\n<img width=\"238\" alt=\"screen shot 2015-12-14 at 2 58 24 pm\" src=\"https://cloud.githubusercontent.com/assets/1369170/11796803/3b6f0fc6-a273-11e5-834b-e923d0d99d45.png\">\r\n\r\nLocally, with your code:\r\n<img width=\"233\" alt=\"screen shot 2015-12-14 at 2 58 31 pm\" src=\"https://cloud.githubusercontent.com/assets/1369170/11796805/3ea9226c-a273-11e5-90f6-6cb91adf1baa.png\">\r\n","created_at":"2015-12-14T23:01:12Z","updated_at":"2015-12-14T23:01:12Z","html_url":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61#discussion_r47572821","pull_request_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/comments/47572821"},"html":{"href":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61#discussion_r47572821"},"pull_request":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61","id":53180015,"html_url":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61","diff_url":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61.diff","patch_url":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61.patch","issue_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/61","number":61,"state":"open","locked":false,"title":"Fix broken growth behavior","user":{"login":"andybons","id":365204,"avatar_url":"https://avatars.githubusercontent.com/u/365204?v=3","gravatar_id":"","url":"https://api.github.com/users/andybons","html_url":"https://github.com/andybons","followers_url":"https://api.github.com/users/andybons/followers","following_url":"https://api.github.com/users/andybons/following{/other_user}","gists_url":"https://api.github.com/users/andybons/gists{/gist_id}","starred_url":"https://api.github.com/users/andybons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybons/subscriptions","organizations_url":"https://api.github.com/users/andybons/orgs","repos_url":"https://api.github.com/users/andybons/repos","events_url":"https://api.github.com/users/andybons/events{/privacy}","received_events_url":"https://api.github.com/users/andybons/received_events","type":"User","site_admin":false},"body":"+ `white-space: pre-wrap` is added to preserve whitespace within the mirror. This was causing long lines without line breaks break in the `<textarea>` not in the mirror div.\r\n+ Removed padding for the element since it messes up the sizing for the mirror element. Since the `textarea` is positioned absolutely, it won't take that padding into account, causing the mirror and textarea elements to have different sizes.","created_at":"2015-12-09T21:24:26Z","updated_at":"2015-12-14T23:01:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99bbd6b023ed0f19c7e808b6d2a6664d677fe02e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61/commits","review_comments_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61/comments","review_comment_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/61/comments","statuses_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/statuses/792f4e1bef8df6d5e8938901274b6b1fec33f9f2","head":{"label":"andybons:andybons/grow","ref":"andybons/grow","sha":"792f4e1bef8df6d5e8938901274b6b1fec33f9f2","user":{"login":"andybons","id":365204,"avatar_url":"https://avatars.githubusercontent.com/u/365204?v=3","gravatar_id":"","url":"https://api.github.com/users/andybons","html_url":"https://github.com/andybons","followers_url":"https://api.github.com/users/andybons/followers","following_url":"https://api.github.com/users/andybons/following{/other_user}","gists_url":"https://api.github.com/users/andybons/gists{/gist_id}","starred_url":"https://api.github.com/users/andybons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybons/subscriptions","organizations_url":"https://api.github.com/users/andybons/orgs","repos_url":"https://api.github.com/users/andybons/repos","events_url":"https://api.github.com/users/andybons/events{/privacy}","received_events_url":"https://api.github.com/users/andybons/received_events","type":"User","site_admin":false},"repo":{"id":47718982,"name":"iron-autogrow-textarea","full_name":"andybons/iron-autogrow-textarea","owner":{"login":"andybons","id":365204,"avatar_url":"https://avatars.githubusercontent.com/u/365204?v=3","gravatar_id":"","url":"https://api.github.com/users/andybons","html_url":"https://github.com/andybons","followers_url":"https://api.github.com/users/andybons/followers","following_url":"https://api.github.com/users/andybons/following{/other_user}","gists_url":"https://api.github.com/users/andybons/gists{/gist_id}","starred_url":"https://api.github.com/users/andybons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybons/subscriptions","organizations_url":"https://api.github.com/users/andybons/orgs","repos_url":"https://api.github.com/users/andybons/repos","events_url":"https://api.github.com/users/andybons/events{/privacy}","received_events_url":"https://api.github.com/users/andybons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andybons/iron-autogrow-textarea","description":"Textarea that grows in height as more lines of input are entered","fork":true,"url":"https://api.github.com/repos/andybons/iron-autogrow-textarea","forks_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/forks","keys_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/teams","hooks_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/hooks","issue_events_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/issues/events{/number}","events_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/events","assignees_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/assignees{/user}","branches_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/branches{/branch}","tags_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/tags","blobs_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/git/refs{/sha}","trees_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/statuses/{sha}","languages_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/languages","stargazers_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/stargazers","contributors_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/contributors","subscribers_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/subscribers","subscription_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/subscription","commits_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/commits{/sha}","git_commits_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/git/commits{/sha}","comments_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/comments{/number}","issue_comment_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/issues/comments{/number}","contents_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/contents/{+path}","compare_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/merges","archive_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/downloads","issues_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/issues{/number}","pulls_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/pulls{/number}","milestones_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/milestones{/number}","notifications_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/labels{/name}","releases_url":"https://api.github.com/repos/andybons/iron-autogrow-textarea/releases{/id}","created_at":"2015-12-09T21:07:55Z","updated_at":"2015-12-09T21:07:55Z","pushed_at":"2015-12-09T21:20:26Z","git_url":"git://github.com/andybons/iron-autogrow-textarea.git","ssh_url":"git@github.com:andybons/iron-autogrow-textarea.git","clone_url":"https://github.com/andybons/iron-autogrow-textarea.git","svn_url":"https://github.com/andybons/iron-autogrow-textarea","homepage":"https://elements.polymer-project.org/elements/iron-autogrow-textarea?view=demo:demo/index.html","size":61,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"PolymerElements:master","ref":"master","sha":"331b98ce67076806dbf1df887229a9d85ea5d741","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":34538029,"name":"iron-autogrow-textarea","full_name":"PolymerElements/iron-autogrow-textarea","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/iron-autogrow-textarea","description":"Textarea that grows in height as more lines of input are entered","fork":false,"url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea","forks_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/forks","keys_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/teams","hooks_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/events","assignees_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/tags","blobs_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/subscription","commits_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/merges","archive_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/downloads","issues_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/releases{/id}","created_at":"2015-04-24T19:38:59Z","updated_at":"2015-11-16T09:44:22Z","pushed_at":"2015-12-09T21:24:26Z","git_url":"git://github.com/PolymerElements/iron-autogrow-textarea.git","ssh_url":"git@github.com:PolymerElements/iron-autogrow-textarea.git","clone_url":"https://github.com/PolymerElements/iron-autogrow-textarea.git","svn_url":"https://github.com/PolymerElements/iron-autogrow-textarea","homepage":"https://elements.polymer-project.org/elements/iron-autogrow-textarea?view=demo:demo/index.html","size":77,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":5,"forks":16,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61"},"html":{"href":"https://github.com/PolymerElements/iron-autogrow-textarea/pull/61"},"issue":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/61"},"comments":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerElements/iron-autogrow-textarea/statuses/792f4e1bef8df6d5e8938901274b6b1fec33f9f2"}}}}