Closed sureshkoduri closed 8 years ago
Hi @sureshkoduri,
Right now the directive initialize itself with the configuration given. The width and height are used to calculate all the needed value (ratio, boundaries etc...) of the cropper. So changing dynamically these value is not easy.
However, you can change these values then reInitialize the directive. There is multiple ways to achieve this, like create another directive to wrap the cropper's, using $compile
...
Hope i gave you some clues 🙂
Thank you @bcabanes
Can you tell me a way to reInitialize the directive?
Hi, I want to change cropper width and height dynamically and I am doing the below
In controller Im using
$scope.cropper = { width:$element.context.offsetWidth,height:$element.context.offsetHeight};
Any help??