{"action":"closed","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/562","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/562/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/562/events","html_url":"https://github.com/fengyuanchen/cropper/issues/562","id":123255075,"number":562,"title":"Too much height on initialize","user":{"login":"steefaan","id":5982785,"avatar_url":"https://avatars.githubusercontent.com/u/5982785?v=3","gravatar_id":"","url":"https://api.github.com/users/steefaan","html_url":"https://github.com/steefaan","followers_url":"https://api.github.com/users/steefaan/followers","following_url":"https://api.github.com/users/steefaan/following{/other_user}","gists_url":"https://api.github.com/users/steefaan/gists{/gist_id}","starred_url":"https://api.github.com/users/steefaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steefaan/subscriptions","organizations_url":"https://api.github.com/users/steefaan/orgs","repos_url":"https://api.github.com/users/steefaan/repos","events_url":"https://api.github.com/users/steefaan/events{/privacy}","received_events_url":"https://api.github.com/users/steefaan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T10:57:03Z","updated_at":"2015-12-21T11:09:19Z","closed_at":"2015-12-21T11:09:19Z","body":"@fengyuanchen Great job, your cropper is awesome.\r\n\r\nI recently updated to 2.2.1 but I noticed this issue already in 1.*\r\n\r\nI open the cropper inside a bootstrap modal. Everything works fine but if I load big images (1920x1080 for example) the height of the cropper container explodes. See:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5982785/11929240/9f226336-a7d9-11e5-859c-ea9edbd92caf.png)\r\n\r\nThe initialization itself is fine. The cropper formats the image so it fits into the container. Do you have an idea why the height explodes? I overlooked an option maybe?\r\n\r\n Here are my options:\r\n\r\n```js\r\n        this.$cropper.cropper({\r\n            viewMode: 1,\r\n            aspectRatio: 1,\r\n            responsive: false,\r\n            //minContainerHeight: 350,\r\n            cropBoxResizable: false,\r\n            resizable: false,\r\n            dragMode: 'move',\r\n            built : (function(_this) {\r\n                return function() {\r\n                    $('.fa-spinner', _this.$modal).hide();\r\n                    $('.btn', _this.$modal).attr('disabled', false);\r\n                    _this.$cropper.cropper('setCropBoxData', {\r\n                        width: 250, height: 250\r\n                    });\r\n                }\r\n            })(this)\r\n        });\r\n```"}}