Fixes issue 7933

This commit is contained in:
Niels Hartvig
2016-02-10 15:38:49 +01:00
parent 5648617809
commit 8bbeeb2eaf
2 changed files with 6 additions and 1 deletions

View File

@@ -49,6 +49,11 @@ angular.module("umbraco")
}
}
// set default size if no crop present (moved from the view)
if (url.indexOf('?') == -1)
{
url += "?width=800&upscale=false"
}
$scope.url = url;
}
};

View File

@@ -9,7 +9,7 @@
<img
ng-if="url"
ng-click="setImage()"
ng-src="{{url}}?width=800&upscale=false"
ng-src="{{url}}"
class="fullSizeImage" />
<input type="text" class="caption" ng-model="control.value.caption" localize="placeholder" placeholder="@grid_placeholderImageCaption" />
</div>