{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1368","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1368/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1368/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1368/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1368","id":134687868,"number":1368,"title":"ngf-dimensions seem dependant on browser window size","user":{"login":"dandanknight","id":1822840,"avatar_url":"https://avatars.githubusercontent.com/u/1822840?v=3","gravatar_id":"","url":"https://api.github.com/users/dandanknight","html_url":"https://github.com/dandanknight","followers_url":"https://api.github.com/users/dandanknight/followers","following_url":"https://api.github.com/users/dandanknight/following{/other_user}","gists_url":"https://api.github.com/users/dandanknight/gists{/gist_id}","starred_url":"https://api.github.com/users/dandanknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandanknight/subscriptions","organizations_url":"https://api.github.com/users/dandanknight/orgs","repos_url":"https://api.github.com/users/dandanknight/repos","events_url":"https://api.github.com/users/dandanknight/events{/privacy}","received_events_url":"https://api.github.com/users/dandanknight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T20:34:28Z","updated_at":"2016-02-19T11:59:48Z","closed_at":null,"body":"Hi,\r\n\r\nI'm experiencing a strange issue whereby if I'm trying to validate an image that is larger than my browser window, then I get an validation error saying that the dimensions of the image are the size of my browser window.\r\n\r\nFor example, \r\n\r\n`\r\nngf-dimensions=\"$width === 1920 && $height === 1080\"\r\n`\r\n..and loading in a 1920x1080 image will produce the following validation error....\r\n````\r\n{\r\n    \"$ngfBlobUrl\": \"blob:http%3A//localhost%3A3000/dac0927b-528c-408b-b875-7b7d86eca72e\",\r\n    \"$ngfWidth\": 1440,\r\n    \"$ngfHeight\": 810,\r\n    \"$error\": \"dimensions\",\r\n    \"$errorMessages\": {\r\n        \"name\": true\r\n    },\r\n    \"$errorParam\": false\r\n}\r\n````\r\n\r\nIf I reduce my browser window size, then the validation error dimensions change.\r\n\r\nAny ideas how I can fix this? Many thanks"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/186188411","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1368#issuecomment-186188411","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1368","id":186188411,"user":{"login":"dandanknight","id":1822840,"avatar_url":"https://avatars.githubusercontent.com/u/1822840?v=3","gravatar_id":"","url":"https://api.github.com/users/dandanknight","html_url":"https://github.com/dandanknight","followers_url":"https://api.github.com/users/dandanknight/followers","following_url":"https://api.github.com/users/dandanknight/following{/other_user}","gists_url":"https://api.github.com/users/dandanknight/gists{/gist_id}","starred_url":"https://api.github.com/users/dandanknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandanknight/subscriptions","organizations_url":"https://api.github.com/users/dandanknight/orgs","repos_url":"https://api.github.com/users/dandanknight/repos","events_url":"https://api.github.com/users/dandanknight/events{/privacy}","received_events_url":"https://api.github.com/users/dandanknight/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T11:59:48Z","updated_at":"2016-02-19T11:59:48Z","body":"Right, I know it seems I'm talking to myself here, but hopefully not! \r\n\r\nI've further narrowed it down to a single css entry....\r\n\r\n````\r\nimg {\r\n    max-width: 100%;\r\n}\r\n````\r\n\r\nWith it, the issue is there. Remove or set to none, and the issue is gone! Hopefully I can override in my app's css and get round this issue."}}