-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imageDimensions(file) and $ngfWidth/$ngfHeight have wrong values #1490
Comments
What device and browser? |
Happens in Chrome stable and Firefox. But I see the Demo is working (sorry - didn't think about checking it there first). Guess my problem is somewhere here $scope.$watchCollection('vm.files', function(newVal, oldVal) {
// console.log("newVal:", newVal);
vm.busy = true;
var fileErrors = 0;
for (var i = 0; i < newVal.length; i++) {
if (newVal[i].dimensions === undefined) {
// TODO: https://github.com/danialfarid/ng-file-upload/issues/1490
appendDimensions(newVal[i]);
}
if (newVal[i].$error !== undefined) {
fileErrors += 1;
}
}
$scope.queueInvalidLength = fileErrors;
... I read something about adding |
jqLite .css() function has problems with `!important`. See e.g.: angular/angular.js#5379
Just created a new pull request (#1506). Should be safe to merge this I think. |
If somebody runs into this issue, simple fix would be: body > img {
max-width: none !important;
} |
The values vary depending on the actual browser window size. E.g. when I add an image with an actual width of 2000px and my Browser window is 1280px then the width value will show something like <1280px.
The text was updated successfully, but these errors were encountered: