{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/214","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/214/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/214/events","html_url":"https://github.com/fengyuanchen/cropper/issues/214","id":59469286,"number":214,"title":"请问下如何动态设置容器的尺寸","user":{"login":"bjdgyc","id":3318252,"avatar_url":"https://avatars.githubusercontent.com/u/3318252?v=3","gravatar_id":"","url":"https://api.github.com/users/bjdgyc","html_url":"https://github.com/bjdgyc","followers_url":"https://api.github.com/users/bjdgyc/followers","following_url":"https://api.github.com/users/bjdgyc/following{/other_user}","gists_url":"https://api.github.com/users/bjdgyc/gists{/gist_id}","starred_url":"https://api.github.com/users/bjdgyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjdgyc/subscriptions","organizations_url":"https://api.github.com/users/bjdgyc/orgs","repos_url":"https://api.github.com/users/bjdgyc/repos","events_url":"https://api.github.com/users/bjdgyc/events{/privacy}","received_events_url":"https://api.github.com/users/bjdgyc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T11:28:09Z","updated_at":"2015-03-16T09:59:42Z","closed_at":"2015-03-16T09:59:42Z","body":"你好，请问下如何动态设置容器的尺寸，我在初始完成后动态设置cropper-container的宽高，并不会起作用。\r\n现在做一个裁切头像的应用，但是如果使用图片缩放功能，很容易出现黑边的问题。\r\n如果设置成容器和图片比例相同，并且禁用图片缩放功能，正常情况下可以裁切，\r\n但是在图片旋转后，容器尺寸与旋转后的图片就没法吻合，\r\n请问能够在旋转图片后对容器尺寸进行动态修改吗，还是我的思路错了。\r\n希望能够得到回复，谢谢。"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/comments/81554385","html_url":"https://github.com/fengyuanchen/cropper/issues/214#issuecomment-81554385","issue_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/214","id":81554385,"user":{"login":"fengyuanchen","id":3456749,"avatar_url":"https://avatars.githubusercontent.com/u/3456749?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyuanchen","html_url":"https://github.com/fengyuanchen","followers_url":"https://api.github.com/users/fengyuanchen/followers","following_url":"https://api.github.com/users/fengyuanchen/following{/other_user}","gists_url":"https://api.github.com/users/fengyuanchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyuanchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyuanchen/subscriptions","organizations_url":"https://api.github.com/users/fengyuanchen/orgs","repos_url":"https://api.github.com/users/fengyuanchen/repos","events_url":"https://api.github.com/users/fengyuanchen/events{/privacy}","received_events_url":"https://api.github.com/users/fengyuanchen/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T09:59:42Z","updated_at":"2015-03-16T09:59:42Z","body":"容器是固定的，如果要改变，请注销后在重新初始化。"}}