You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click on "Import image", I import an image properly and the div with "showImageUpload" disappears and the one with "showImageSubmit" (or with a submit button) appears .
When I click on "submit", after cropping my image of course, the div with "showImageCropped" appears, but with a not cropped image although I put ng-src="{[{croppedDataUrl}]}", and here is my problem. But it works very great if I remove the ngShows.
Why I've a not cropped image in the div with "showImageCropped" when using ngShow? I want my cropped image displaying here. How can I perform that after performing a ng-show ?
Many thanks in advance for you help.
The text was updated successfully, but these errors were encountered:
I have a similar problem.
When hiding the div where the crop area is, it maintain the crop area, but appears to lose the cropp size information.
That also happens if I set the container div position to absolute.
If I show the div again, it will show me the cropped area on the right position, but the width and height of the selection are lost.
Each time the crop changes, I save the data on another variable in my controller,
if the crop container is not hidden.
self.changeCrop = function (img) {
if (!self.hidden) {
self.cropped = img;
}
}
With this, when I hide the container, it will try to update to the wrong sized crop but my "hidden" variable will not allow it and will keep the correctly cropped data.
I'm customizing ngImgCrop with ngShow and ngFileUpload to implement it on one of my project.
Here is a sample of my code :
app.js
Here are the events occuring :
When I click on "Import image", I import an image properly and the div with "showImageUpload" disappears and the one with "showImageSubmit" (or with a submit button) appears .
When I click on "submit", after cropping my image of course, the div with "showImageCropped" appears, but with a not cropped image although I put ng-src="{[{croppedDataUrl}]}", and here is my problem. But it works very great if I remove the ngShows.
Why I've a not cropped image in the div with "showImageCropped" when using ngShow? I want my cropped image displaying here. How can I perform that after performing a ng-show ?
Many thanks in advance for you help.
The text was updated successfully, but these errors were encountered: