{"action":"created","issue":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1901","labels_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1901/labels{/name}","comments_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1901/comments","events_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1901/events","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1901","id":99008101,"number":1901,"title":"Center document when the panel is resized","user":{"login":"shaoshing","id":118264,"avatar_url":"https://avatars.githubusercontent.com/u/118264?v=3","gravatar_id":"","url":"https://api.github.com/users/shaoshing","html_url":"https://github.com/shaoshing","followers_url":"https://api.github.com/users/shaoshing/followers","following_url":"https://api.github.com/users/shaoshing/following{/other_user}","gists_url":"https://api.github.com/users/shaoshing/gists{/gist_id}","starred_url":"https://api.github.com/users/shaoshing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaoshing/subscriptions","organizations_url":"https://api.github.com/users/shaoshing/orgs","repos_url":"https://api.github.com/users/shaoshing/repos","events_url":"https://api.github.com/users/shaoshing/events{/privacy}","received_events_url":"https://api.github.com/users/shaoshing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/labels/Ready","name":"Ready","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"iwehrman","id":1075154,"avatar_url":"https://avatars.githubusercontent.com/u/1075154?v=3","gravatar_id":"","url":"https://api.github.com/users/iwehrman","html_url":"https://github.com/iwehrman","followers_url":"https://api.github.com/users/iwehrman/followers","following_url":"https://api.github.com/users/iwehrman/following{/other_user}","gists_url":"https://api.github.com/users/iwehrman/gists{/gist_id}","starred_url":"https://api.github.com/users/iwehrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwehrman/subscriptions","organizations_url":"https://api.github.com/users/iwehrman/orgs","repos_url":"https://api.github.com/users/iwehrman/repos","events_url":"https://api.github.com/users/iwehrman/events{/privacy}","received_events_url":"https://api.github.com/users/iwehrman/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-08-04T16:31:47Z","updated_at":"2015-08-05T17:23:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/pulls/1901","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1901","diff_url":"https://github.com/adobe-photoshop/spaces-design/pull/1901.diff","patch_url":"https://github.com/adobe-photoshop/spaces-design/pull/1901.patch"},"body":"The previous implementation only center the selected document once after startup, leaves the other documents shifted when opening multiple document. This PR will make sure document is centered when the panel is resize (including initial startup), which is the same behavior in standard PS.\r\n\r\nFix issue: #1830 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/comments/128083107","html_url":"https://github.com/adobe-photoshop/spaces-design/pull/1901#issuecomment-128083107","issue_url":"https://api.github.com/repos/adobe-photoshop/spaces-design/issues/1901","id":128083107,"user":{"login":"shaoshing","id":118264,"avatar_url":"https://avatars.githubusercontent.com/u/118264?v=3","gravatar_id":"","url":"https://api.github.com/users/shaoshing","html_url":"https://github.com/shaoshing","followers_url":"https://api.github.com/users/shaoshing/followers","following_url":"https://api.github.com/users/shaoshing/following{/other_user}","gists_url":"https://api.github.com/users/shaoshing/gists{/gist_id}","starred_url":"https://api.github.com/users/shaoshing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaoshing/subscriptions","organizations_url":"https://api.github.com/users/shaoshing/orgs","repos_url":"https://api.github.com/users/shaoshing/repos","events_url":"https://api.github.com/users/shaoshing/events{/privacy}","received_events_url":"https://api.github.com/users/shaoshing/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:23:50Z","updated_at":"2015-08-05T17:23:50Z","body":"@designedbyscience thanks for the video; it does seem more complicated than I thought. However, this PR now only center the document once for its initial display, so it should be safe in terms of breaking user experience."}}