bupy7 / yii2-widget-cropbox

This widget allows crop image before upload to server and send informations about crop in JSON format.
BSD 3-Clause "New" or "Revised" License
91 stars 33 forks source link

Set width and height of cropbox #17

Closed Emtschikay closed 8 years ago

Emtschikay commented 8 years ago

Is there a way to set the width and height of the cropbox and to not make it resizeable? I saw the properties in the .js file, but I wonder if there's another way than editing the file.

bupy7 commented 8 years ago

Hi. You can to set CSS properties for weight and height:

.workarea-cropbox,
.bg-cropbox {
    height: 500px;
    min-height: 500px;
    width: 500px;
    min-width: 500px;
}
Emtschikay commented 8 years ago

Thanks!