{"action":"created","comment":{"url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/comments/168149326","pull_request_review_id":88947731,"id":168149326,"diff_hunk":"@@ -71,6 +72,58 @@ export class CHTMLmtable extends CHTMLWrapper {\n         //\n         this.numCols = this.childNodes.map(row => (row as CHTMLmtr).numCells).reduce((a, b) => Math.max(a, b));\n         this.numRows = this.childNodes.length;\n+        //\n+        // Stretch the columns (rows are already taken care of in the CHTMLmtr wrapper)\n+        //\n+        for (let i = 0; i < this.numCols; i++) {\n+            this.stretchColumn(i);\n+        }\n+    }\n+\n+    /*\n+     * Handle horizontal stretching within the ith column\n+     */\n+    protected stretchColumn(i: number) {\n+        let stretchy: CHTMLWrapper[] = [];\n+        //\n+        //  Locate and count the stretchy children\n+        //\n+        for (const row of (this.childNodes as CHTMLmtr[])) {\n+            const cell = row.childNodes[i + row.firstCell];\n+            if (cell) {\n+                const child = cell.childNodes[0];\n+                if (child.stretch.dir === DIRECTION.None && child.canStretch(DIRECTION.Horizontal)) {","path":"mathjax3-ts/output/chtml/Wrappers/mtable.ts","position":32,"original_position":32,"commit_id":"0ec2894f6e2ecc3e1faddcd9ba1dcbdb8da471dd","original_commit_id":"0ec2894f6e2ecc3e1faddcd9ba1dcbdb8da471dd","user":{"login":"zorkow","id":5717215,"avatar_url":"https://avatars2.githubusercontent.com/u/5717215?v=4","gravatar_id":"","url":"https://api.github.com/users/zorkow","html_url":"https://github.com/zorkow","followers_url":"https://api.github.com/users/zorkow/followers","following_url":"https://api.github.com/users/zorkow/following{/other_user}","gists_url":"https://api.github.com/users/zorkow/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkow/subscriptions","organizations_url":"https://api.github.com/users/zorkow/orgs","repos_url":"https://api.github.com/users/zorkow/repos","events_url":"https://api.github.com/users/zorkow/events{/privacy}","received_events_url":"https://api.github.com/users/zorkow/received_events","type":"User","site_admin":false},"body":"linelength","created_at":"2018-02-14T11:41:28Z","updated_at":"2018-02-14T11:55:38Z","html_url":"https://github.com/mathjax/mathjax-v3/pull/61#discussion_r168149326","pull_request_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/comments/168149326"},"html":{"href":"https://github.com/mathjax/mathjax-v3/pull/61#discussion_r168149326"},"pull_request":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61","id":146685920,"html_url":"https://github.com/mathjax/mathjax-v3/pull/61","diff_url":"https://github.com/mathjax/mathjax-v3/pull/61.diff","patch_url":"https://github.com/mathjax/mathjax-v3/pull/61.patch","issue_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/61","number":61,"state":"open","locked":false,"title":"Add support for stretchy cells in tables","user":{"login":"dpvc","id":432782,"avatar_url":"https://avatars2.githubusercontent.com/u/432782?v=4","gravatar_id":"","url":"https://api.github.com/users/dpvc","html_url":"https://github.com/dpvc","followers_url":"https://api.github.com/users/dpvc/followers","following_url":"https://api.github.com/users/dpvc/following{/other_user}","gists_url":"https://api.github.com/users/dpvc/gists{/gist_id}","starred_url":"https://api.github.com/users/dpvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpvc/subscriptions","organizations_url":"https://api.github.com/users/dpvc/orgs","repos_url":"https://api.github.com/users/dpvc/repos","events_url":"https://api.github.com/users/dpvc/events{/privacy}","received_events_url":"https://api.github.com/users/dpvc/received_events","type":"User","site_admin":false},"body":"This PR adds support for horizontal and vertical stretchy characters in table cells.  Only rows or columns with actual stretchy characters will have their bounding boxes computed.","created_at":"2017-10-16T02:39:52Z","updated_at":"2018-02-14T11:55:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc3cd21179b288ae9b4d73be1043964634785265","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":773124878,"url":"https://api.github.com/repos/mathjax/mathjax-v3/labels/in%20current%20alpha","name":"in current alpha","color":"7ce2dd","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61/commits","review_comments_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61/comments","review_comment_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/61/comments","statuses_url":"https://api.github.com/repos/mathjax/mathjax-v3/statuses/0ec2894f6e2ecc3e1faddcd9ba1dcbdb8da471dd","head":{"label":"mathjax:stretchy-cells","ref":"stretchy-cells","sha":"0ec2894f6e2ecc3e1faddcd9ba1dcbdb8da471dd","user":{"login":"mathjax","id":252187,"avatar_url":"https://avatars1.githubusercontent.com/u/252187?v=4","gravatar_id":"","url":"https://api.github.com/users/mathjax","html_url":"https://github.com/mathjax","followers_url":"https://api.github.com/users/mathjax/followers","following_url":"https://api.github.com/users/mathjax/following{/other_user}","gists_url":"https://api.github.com/users/mathjax/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjax/subscriptions","organizations_url":"https://api.github.com/users/mathjax/orgs","repos_url":"https://api.github.com/users/mathjax/repos","events_url":"https://api.github.com/users/mathjax/events{/privacy}","received_events_url":"https://api.github.com/users/mathjax/received_events","type":"Organization","site_admin":false},"repo":{"id":52348698,"name":"mathjax-v3","full_name":"mathjax/mathjax-v3","owner":{"login":"mathjax","id":252187,"avatar_url":"https://avatars1.githubusercontent.com/u/252187?v=4","gravatar_id":"","url":"https://api.github.com/users/mathjax","html_url":"https://github.com/mathjax","followers_url":"https://api.github.com/users/mathjax/followers","following_url":"https://api.github.com/users/mathjax/following{/other_user}","gists_url":"https://api.github.com/users/mathjax/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjax/subscriptions","organizations_url":"https://api.github.com/users/mathjax/orgs","repos_url":"https://api.github.com/users/mathjax/repos","events_url":"https://api.github.com/users/mathjax/events{/privacy}","received_events_url":"https://api.github.com/users/mathjax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mathjax/mathjax-v3","description":"A repository for early stages of MathJax v3 ","fork":false,"url":"https://api.github.com/repos/mathjax/mathjax-v3","forks_url":"https://api.github.com/repos/mathjax/mathjax-v3/forks","keys_url":"https://api.github.com/repos/mathjax/mathjax-v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathjax/mathjax-v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathjax/mathjax-v3/teams","hooks_url":"https://api.github.com/repos/mathjax/mathjax-v3/hooks","issue_events_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/events{/number}","events_url":"https://api.github.com/repos/mathjax/mathjax-v3/events","assignees_url":"https://api.github.com/repos/mathjax/mathjax-v3/assignees{/user}","branches_url":"https://api.github.com/repos/mathjax/mathjax-v3/branches{/branch}","tags_url":"https://api.github.com/repos/mathjax/mathjax-v3/tags","blobs_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathjax/mathjax-v3/statuses/{sha}","languages_url":"https://api.github.com/repos/mathjax/mathjax-v3/languages","stargazers_url":"https://api.github.com/repos/mathjax/mathjax-v3/stargazers","contributors_url":"https://api.github.com/repos/mathjax/mathjax-v3/contributors","subscribers_url":"https://api.github.com/repos/mathjax/mathjax-v3/subscribers","subscription_url":"https://api.github.com/repos/mathjax/mathjax-v3/subscription","commits_url":"https://api.github.com/repos/mathjax/mathjax-v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathjax/mathjax-v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathjax/mathjax-v3/contents/{+path}","compare_url":"https://api.github.com/repos/mathjax/mathjax-v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathjax/mathjax-v3/merges","archive_url":"https://api.github.com/repos/mathjax/mathjax-v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathjax/mathjax-v3/downloads","issues_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues{/number}","pulls_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls{/number}","milestones_url":"https://api.github.com/repos/mathjax/mathjax-v3/milestones{/number}","notifications_url":"https://api.github.com/repos/mathjax/mathjax-v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathjax/mathjax-v3/labels{/name}","releases_url":"https://api.github.com/repos/mathjax/mathjax-v3/releases{/id}","deployments_url":"https://api.github.com/repos/mathjax/mathjax-v3/deployments","created_at":"2016-02-23T09:52:03Z","updated_at":"2018-02-05T02:42:15Z","pushed_at":"2018-02-06T16:28:17Z","git_url":"git://github.com/mathjax/mathjax-v3.git","ssh_url":"git@github.com:mathjax/mathjax-v3.git","clone_url":"https://github.com/mathjax/mathjax-v3.git","svn_url":"https://github.com/mathjax/mathjax-v3","homepage":"","size":3448,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":5,"open_issues":17,"watchers":20,"default_branch":"master"}},"base":{"label":"mathjax:horizontal-stretch","ref":"horizontal-stretch","sha":"3b7fd8025e94cd7d51bb0c8b7a9b9c8ae1716e25","user":{"login":"mathjax","id":252187,"avatar_url":"https://avatars1.githubusercontent.com/u/252187?v=4","gravatar_id":"","url":"https://api.github.com/users/mathjax","html_url":"https://github.com/mathjax","followers_url":"https://api.github.com/users/mathjax/followers","following_url":"https://api.github.com/users/mathjax/following{/other_user}","gists_url":"https://api.github.com/users/mathjax/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjax/subscriptions","organizations_url":"https://api.github.com/users/mathjax/orgs","repos_url":"https://api.github.com/users/mathjax/repos","events_url":"https://api.github.com/users/mathjax/events{/privacy}","received_events_url":"https://api.github.com/users/mathjax/received_events","type":"Organization","site_admin":false},"repo":{"id":52348698,"name":"mathjax-v3","full_name":"mathjax/mathjax-v3","owner":{"login":"mathjax","id":252187,"avatar_url":"https://avatars1.githubusercontent.com/u/252187?v=4","gravatar_id":"","url":"https://api.github.com/users/mathjax","html_url":"https://github.com/mathjax","followers_url":"https://api.github.com/users/mathjax/followers","following_url":"https://api.github.com/users/mathjax/following{/other_user}","gists_url":"https://api.github.com/users/mathjax/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjax/subscriptions","organizations_url":"https://api.github.com/users/mathjax/orgs","repos_url":"https://api.github.com/users/mathjax/repos","events_url":"https://api.github.com/users/mathjax/events{/privacy}","received_events_url":"https://api.github.com/users/mathjax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mathjax/mathjax-v3","description":"A repository for early stages of MathJax v3 ","fork":false,"url":"https://api.github.com/repos/mathjax/mathjax-v3","forks_url":"https://api.github.com/repos/mathjax/mathjax-v3/forks","keys_url":"https://api.github.com/repos/mathjax/mathjax-v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathjax/mathjax-v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathjax/mathjax-v3/teams","hooks_url":"https://api.github.com/repos/mathjax/mathjax-v3/hooks","issue_events_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/events{/number}","events_url":"https://api.github.com/repos/mathjax/mathjax-v3/events","assignees_url":"https://api.github.com/repos/mathjax/mathjax-v3/assignees{/user}","branches_url":"https://api.github.com/repos/mathjax/mathjax-v3/branches{/branch}","tags_url":"https://api.github.com/repos/mathjax/mathjax-v3/tags","blobs_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathjax/mathjax-v3/statuses/{sha}","languages_url":"https://api.github.com/repos/mathjax/mathjax-v3/languages","stargazers_url":"https://api.github.com/repos/mathjax/mathjax-v3/stargazers","contributors_url":"https://api.github.com/repos/mathjax/mathjax-v3/contributors","subscribers_url":"https://api.github.com/repos/mathjax/mathjax-v3/subscribers","subscription_url":"https://api.github.com/repos/mathjax/mathjax-v3/subscription","commits_url":"https://api.github.com/repos/mathjax/mathjax-v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathjax/mathjax-v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathjax/mathjax-v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathjax/mathjax-v3/contents/{+path}","compare_url":"https://api.github.com/repos/mathjax/mathjax-v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathjax/mathjax-v3/merges","archive_url":"https://api.github.com/repos/mathjax/mathjax-v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathjax/mathjax-v3/downloads","issues_url":"https://api.github.com/repos/mathjax/mathjax-v3/issues{/number}","pulls_url":"https://api.github.com/repos/mathjax/mathjax-v3/pulls{/number}","milestones_url":"https://api.github.com/repos/mathjax/mathjax-v3/milestones{/number}","notifications_url":"https://api.github.com/repos/mathjax/mathjax-v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathjax/mathjax-v3/labels{/name}","releases_url":"https://api.github.com/repos/mathjax/mathjax-v3/releases{/id}","deployments_url":"https://api.github.com/repos/mathjax/mathjax-v3/deployments","created_at":"2016-02-23T09:52:03Z","updated_at":"2018-02-05T02:42:15Z","pushed_at":"2018-02-06T16:28:17Z","git_url":"git://github.com/mathjax/mathjax-v3.git","ssh_url":"git@github.com:mathjax/mathjax-v3.git","clone_url":"https://github.com/mathjax/mathjax-v3.git","svn_url":"https://github.com/mathjax/mathjax-v3","homepage":"","size":3448,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":5,"open_issues":17,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61"},"html":{"href":"https://github.com/mathjax/mathjax-v3/pull/61"},"issue":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/issues/61"},"comments":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/mathjax/mathjax-v3/statuses/0ec2894f6e2ecc3e1faddcd9ba1dcbdb8da471dd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"zorkow"}}