{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/sentsin/layer/pulls/12","id":42533501,"html_url":"https://github.com/sentsin/layer/pull/12","diff_url":"https://github.com/sentsin/layer/pull/12.diff","patch_url":"https://github.com/sentsin/layer/pull/12.patch","issue_url":"https://api.github.com/repos/sentsin/layer/issues/12","number":12,"state":"closed","locked":false,"title":"修改大图片超过屏幕高宽情况的适配","user":{"login":"felixhao","id":3312434,"avatar_url":"https://avatars.githubusercontent.com/u/3312434?v=3","gravatar_id":"","url":"https://api.github.com/users/felixhao","html_url":"https://github.com/felixhao","followers_url":"https://api.github.com/users/felixhao/followers","following_url":"https://api.github.com/users/felixhao/following{/other_user}","gists_url":"https://api.github.com/users/felixhao/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhao/subscriptions","organizations_url":"https://api.github.com/users/felixhao/orgs","repos_url":"https://api.github.com/users/felixhao/repos","events_url":"https://api.github.com/users/felixhao/events{/privacy}","received_events_url":"https://api.github.com/users/felixhao/received_events","type":"User","site_admin":false},"body":"之前的代码只处理了超过宽度的情况，而且不是等比缩放，实际效果会使图片底部遮挡一节。\r\n这部分改动为先判断宽度如果超过，处理缩放。如果处理之后高度还超过实际高度，就在按照高度缩放。","created_at":"2015-08-16T09:15:25Z","updated_at":"2015-08-31T16:10:39Z","closed_at":"2015-08-31T16:10:39Z","merged_at":"2015-08-31T16:10:39Z","merge_commit_sha":"7d68a188345905a81672e036a5c25c85f73312e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sentsin/layer/pulls/12/commits","review_comments_url":"https://api.github.com/repos/sentsin/layer/pulls/12/comments","review_comment_url":"https://api.github.com/repos/sentsin/layer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sentsin/layer/issues/12/comments","statuses_url":"https://api.github.com/repos/sentsin/layer/statuses/0b5e1c08ffa6aea6e587f67ecc653d3a714cc739","head":{"label":"felixhao:patch-1","ref":"patch-1","sha":"0b5e1c08ffa6aea6e587f67ecc653d3a714cc739","user":{"login":"felixhao","id":3312434,"avatar_url":"https://avatars.githubusercontent.com/u/3312434?v=3","gravatar_id":"","url":"https://api.github.com/users/felixhao","html_url":"https://github.com/felixhao","followers_url":"https://api.github.com/users/felixhao/followers","following_url":"https://api.github.com/users/felixhao/following{/other_user}","gists_url":"https://api.github.com/users/felixhao/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhao/subscriptions","organizations_url":"https://api.github.com/users/felixhao/orgs","repos_url":"https://api.github.com/users/felixhao/repos","events_url":"https://api.github.com/users/felixhao/events{/privacy}","received_events_url":"https://api.github.com/users/felixhao/received_events","type":"User","site_admin":false},"repo":{"id":40805154,"name":"layer","full_name":"felixhao/layer","owner":{"login":"felixhao","id":3312434,"avatar_url":"https://avatars.githubusercontent.com/u/3312434?v=3","gravatar_id":"","url":"https://api.github.com/users/felixhao","html_url":"https://github.com/felixhao","followers_url":"https://api.github.com/users/felixhao/followers","following_url":"https://api.github.com/users/felixhao/following{/other_user}","gists_url":"https://api.github.com/users/felixhao/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhao/subscriptions","organizations_url":"https://api.github.com/users/felixhao/orgs","repos_url":"https://api.github.com/users/felixhao/repos","events_url":"https://api.github.com/users/felixhao/events{/privacy}","received_events_url":"https://api.github.com/users/felixhao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felixhao/layer","description":"最懂你的、跨终端的web弹层组件","fork":true,"url":"https://api.github.com/repos/felixhao/layer","forks_url":"https://api.github.com/repos/felixhao/layer/forks","keys_url":"https://api.github.com/repos/felixhao/layer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felixhao/layer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felixhao/layer/teams","hooks_url":"https://api.github.com/repos/felixhao/layer/hooks","issue_events_url":"https://api.github.com/repos/felixhao/layer/issues/events{/number}","events_url":"https://api.github.com/repos/felixhao/layer/events","assignees_url":"https://api.github.com/repos/felixhao/layer/assignees{/user}","branches_url":"https://api.github.com/repos/felixhao/layer/branches{/branch}","tags_url":"https://api.github.com/repos/felixhao/layer/tags","blobs_url":"https://api.github.com/repos/felixhao/layer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felixhao/layer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felixhao/layer/git/refs{/sha}","trees_url":"https://api.github.com/repos/felixhao/layer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felixhao/layer/statuses/{sha}","languages_url":"https://api.github.com/repos/felixhao/layer/languages","stargazers_url":"https://api.github.com/repos/felixhao/layer/stargazers","contributors_url":"https://api.github.com/repos/felixhao/layer/contributors","subscribers_url":"https://api.github.com/repos/felixhao/layer/subscribers","subscription_url":"https://api.github.com/repos/felixhao/layer/subscription","commits_url":"https://api.github.com/repos/felixhao/layer/commits{/sha}","git_commits_url":"https://api.github.com/repos/felixhao/layer/git/commits{/sha}","comments_url":"https://api.github.com/repos/felixhao/layer/comments{/number}","issue_comment_url":"https://api.github.com/repos/felixhao/layer/issues/comments{/number}","contents_url":"https://api.github.com/repos/felixhao/layer/contents/{+path}","compare_url":"https://api.github.com/repos/felixhao/layer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felixhao/layer/merges","archive_url":"https://api.github.com/repos/felixhao/layer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felixhao/layer/downloads","issues_url":"https://api.github.com/repos/felixhao/layer/issues{/number}","pulls_url":"https://api.github.com/repos/felixhao/layer/pulls{/number}","milestones_url":"https://api.github.com/repos/felixhao/layer/milestones{/number}","notifications_url":"https://api.github.com/repos/felixhao/layer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felixhao/layer/labels{/name}","releases_url":"https://api.github.com/repos/felixhao/layer/releases{/id}","created_at":"2015-08-16T08:37:59Z","updated_at":"2015-08-16T08:37:59Z","pushed_at":"2015-08-17T02:19:59Z","git_url":"git://github.com/felixhao/layer.git","ssh_url":"git@github.com:felixhao/layer.git","clone_url":"https://github.com/felixhao/layer.git","svn_url":"https://github.com/felixhao/layer","homepage":"http://layer.layui.com","size":411,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sentsin:master","ref":"master","sha":"719302f2064836e56c65eb848072041eba9599cf","user":{"login":"sentsin","id":3277200,"avatar_url":"https://avatars.githubusercontent.com/u/3277200?v=3","gravatar_id":"","url":"https://api.github.com/users/sentsin","html_url":"https://github.com/sentsin","followers_url":"https://api.github.com/users/sentsin/followers","following_url":"https://api.github.com/users/sentsin/following{/other_user}","gists_url":"https://api.github.com/users/sentsin/gists{/gist_id}","starred_url":"https://api.github.com/users/sentsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sentsin/subscriptions","organizations_url":"https://api.github.com/users/sentsin/orgs","repos_url":"https://api.github.com/users/sentsin/repos","events_url":"https://api.github.com/users/sentsin/events{/privacy}","received_events_url":"https://api.github.com/users/sentsin/received_events","type":"User","site_admin":false},"repo":{"id":19919669,"name":"layer","full_name":"sentsin/layer","owner":{"login":"sentsin","id":3277200,"avatar_url":"https://avatars.githubusercontent.com/u/3277200?v=3","gravatar_id":"","url":"https://api.github.com/users/sentsin","html_url":"https://github.com/sentsin","followers_url":"https://api.github.com/users/sentsin/followers","following_url":"https://api.github.com/users/sentsin/following{/other_user}","gists_url":"https://api.github.com/users/sentsin/gists{/gist_id}","starred_url":"https://api.github.com/users/sentsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sentsin/subscriptions","organizations_url":"https://api.github.com/users/sentsin/orgs","repos_url":"https://api.github.com/users/sentsin/repos","events_url":"https://api.github.com/users/sentsin/events{/privacy}","received_events_url":"https://api.github.com/users/sentsin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sentsin/layer","description":"最懂你的、跨终端的web弹层组件","fork":false,"url":"https://api.github.com/repos/sentsin/layer","forks_url":"https://api.github.com/repos/sentsin/layer/forks","keys_url":"https://api.github.com/repos/sentsin/layer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sentsin/layer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sentsin/layer/teams","hooks_url":"https://api.github.com/repos/sentsin/layer/hooks","issue_events_url":"https://api.github.com/repos/sentsin/layer/issues/events{/number}","events_url":"https://api.github.com/repos/sentsin/layer/events","assignees_url":"https://api.github.com/repos/sentsin/layer/assignees{/user}","branches_url":"https://api.github.com/repos/sentsin/layer/branches{/branch}","tags_url":"https://api.github.com/repos/sentsin/layer/tags","blobs_url":"https://api.github.com/repos/sentsin/layer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sentsin/layer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sentsin/layer/git/refs{/sha}","trees_url":"https://api.github.com/repos/sentsin/layer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sentsin/layer/statuses/{sha}","languages_url":"https://api.github.com/repos/sentsin/layer/languages","stargazers_url":"https://api.github.com/repos/sentsin/layer/stargazers","contributors_url":"https://api.github.com/repos/sentsin/layer/contributors","subscribers_url":"https://api.github.com/repos/sentsin/layer/subscribers","subscription_url":"https://api.github.com/repos/sentsin/layer/subscription","commits_url":"https://api.github.com/repos/sentsin/layer/commits{/sha}","git_commits_url":"https://api.github.com/repos/sentsin/layer/git/commits{/sha}","comments_url":"https://api.github.com/repos/sentsin/layer/comments{/number}","issue_comment_url":"https://api.github.com/repos/sentsin/layer/issues/comments{/number}","contents_url":"https://api.github.com/repos/sentsin/layer/contents/{+path}","compare_url":"https://api.github.com/repos/sentsin/layer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sentsin/layer/merges","archive_url":"https://api.github.com/repos/sentsin/layer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sentsin/layer/downloads","issues_url":"https://api.github.com/repos/sentsin/layer/issues{/number}","pulls_url":"https://api.github.com/repos/sentsin/layer/pulls{/number}","milestones_url":"https://api.github.com/repos/sentsin/layer/milestones{/number}","notifications_url":"https://api.github.com/repos/sentsin/layer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sentsin/layer/labels{/name}","releases_url":"https://api.github.com/repos/sentsin/layer/releases{/id}","created_at":"2014-05-18T19:58:09Z","updated_at":"2015-08-31T15:45:51Z","pushed_at":"2015-08-31T16:10:39Z","git_url":"git://github.com/sentsin/layer.git","ssh_url":"git@github.com:sentsin/layer.git","clone_url":"https://github.com/sentsin/layer.git","svn_url":"https://github.com/sentsin/layer","homepage":"http://layer.layui.com","size":822,"stargazers_count":1010,"watchers_count":1010,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":423,"mirror_url":null,"open_issues_count":1,"forks":423,"open_issues":1,"watchers":1010,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sentsin/layer/pulls/12"},"html":{"href":"https://github.com/sentsin/layer/pull/12"},"issue":{"href":"https://api.github.com/repos/sentsin/layer/issues/12"},"comments":{"href":"https://api.github.com/repos/sentsin/layer/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/sentsin/layer/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/sentsin/layer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sentsin/layer/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/sentsin/layer/statuses/0b5e1c08ffa6aea6e587f67ecc653d3a714cc739"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sentsin","id":3277200,"avatar_url":"https://avatars.githubusercontent.com/u/3277200?v=3","gravatar_id":"","url":"https://api.github.com/users/sentsin","html_url":"https://github.com/sentsin","followers_url":"https://api.github.com/users/sentsin/followers","following_url":"https://api.github.com/users/sentsin/following{/other_user}","gists_url":"https://api.github.com/users/sentsin/gists{/gist_id}","starred_url":"https://api.github.com/users/sentsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sentsin/subscriptions","organizations_url":"https://api.github.com/users/sentsin/orgs","repos_url":"https://api.github.com/users/sentsin/repos","events_url":"https://api.github.com/users/sentsin/events{/privacy}","received_events_url":"https://api.github.com/users/sentsin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":3,"changed_files":1}}