{"action":"created","issue":{"url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/30","labels_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/30/comments","events_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/30/events","html_url":"https://github.com/alexk111/ngImgCrop/issues/30","id":49911737,"number":30,"title":"Canvas 100px when opened in a modal","user":{"login":"fenos","id":4754064,"avatar_url":"https://avatars.githubusercontent.com/u/4754064?v=3","gravatar_id":"","url":"https://api.github.com/users/fenos","html_url":"https://github.com/fenos","followers_url":"https://api.github.com/users/fenos/followers","following_url":"https://api.github.com/users/fenos/following{/other_user}","gists_url":"https://api.github.com/users/fenos/gists{/gist_id}","starred_url":"https://api.github.com/users/fenos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenos/subscriptions","organizations_url":"https://api.github.com/users/fenos/orgs","repos_url":"https://api.github.com/users/fenos/repos","events_url":"https://api.github.com/users/fenos/events{/privacy}","received_events_url":"https://api.github.com/users/fenos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-24T16:36:42Z","updated_at":"2015-02-28T21:33:23Z","closed_at":null,"body":"Hi, I really enjoy using this plugin but when I use it in a modal the canvas size stay to 100px and I couldn't find a way to fix this issue. Why he doesn't become bigger when I put a big image? Please help to fix this please.\r\n\r\n![screen shot 2014-11-24 at 16 36 07](https://cloud.githubusercontent.com/assets/4754064/5168548/0c74e43e-73f8-11e4-8b28-78d33ac03c0b.png)\r\n\r\nHow i Initialise the cropper \r\n~~~\r\n<div class=\"cropArea\">\r\n        <img-crop image=\"image.file.image\"\r\n                  result-image=\"cropper.cropperImage\"></img-crop>\r\n    </div>\r\n~~~\r\n\r\nCss crop area:\r\n\r\n~~~\r\n.cropArea {\r\n  background: #E4E4E4;\r\n  overflow: hidden;\r\n  width:500px;\r\n  height:350px;\r\n  margin: auto;\r\n}\r\n~~~"},"comment":{"url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/comments/76547217","html_url":"https://github.com/alexk111/ngImgCrop/issues/30#issuecomment-76547217","issue_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/30","id":76547217,"user":{"login":"richyarD","id":5273417,"avatar_url":"https://avatars.githubusercontent.com/u/5273417?v=3","gravatar_id":"","url":"https://api.github.com/users/richyarD","html_url":"https://github.com/richyarD","followers_url":"https://api.github.com/users/richyarD/followers","following_url":"https://api.github.com/users/richyarD/following{/other_user}","gists_url":"https://api.github.com/users/richyarD/gists{/gist_id}","starred_url":"https://api.github.com/users/richyarD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richyarD/subscriptions","organizations_url":"https://api.github.com/users/richyarD/orgs","repos_url":"https://api.github.com/users/richyarD/repos","events_url":"https://api.github.com/users/richyarD/events{/privacy}","received_events_url":"https://api.github.com/users/richyarD/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T21:33:23Z","updated_at":"2015-02-28T21:33:23Z","body":"@dlsso good solution. It helped me. But in my case, this line *cropHost.setMaxDimensions(value[0],value[1]);* had to be edited. Just change _value[0]_ and _value[1]_ to some big number, and it will allow cropper to rescale canvas to some bigger dimensions, not just 300x300."}}