ngImgCrop icon indicating copy to clipboard operation
ngImgCrop copied to clipboard

how can I initialize the area size

Open clll7 opened this issue 9 years ago • 3 comments

it is set to 200px by default, but I want to set other value

clll7 avatar Mar 26 '15 07:03 clll7

I have the same question. Is it possible to set the default sizing area after an image did load?

antonbremer avatar Jun 14 '15 17:06 antonbremer

It would be nice if this directive supports area-init-size

nhim175 avatar Apr 21 '16 02:04 nhim175

You could use the min-area-size directive to set the value to lets say 200 (200x200) min-area-size="minAreaSize"

if the container is around that size. Then you would make use of the on-load-done="doneLoading()" and in your controller you would change the min-area-size back to lets say 80

$scope.doneLoading = function(){
 $scope.minAreaSize = 80;
}

abdel-ships-it avatar Feb 28 '17 16:02 abdel-ships-it