Fixes a few oversights in image cropper

This commit is contained in:
Sebastiaan Janssen
2018-10-22 08:31:10 +02:00
parent 2c6fd3af14
commit 4a49817322
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ angular.module("umbraco.directives")
scope.isCroppable = true;
scope.hasDimensions = true;
if (scope.src !== "undefined") {
if (scope.src) {
if (scope.src.endsWith(".svg")) {
scope.isCroppable = false;
scope.hasDimensions = false;

View File

@@ -5,7 +5,7 @@
<img ng-show="isCroppable" ng-src="{{src}}" style="max-width: 100%; max-height: 100%" ng-click="setFocalPoint($event)" draggable="false"/>
<img ng-show="!isCroppable && !hasDimensions" ng-src="{{src}}" width="200" height="200" draggable="false" style="cursor: default;"/>
<div ng-show="isCroppable" ng-when="isCroppable" class="overlay" ng-style="style()">
<div ng-show="isCroppable" class="overlay" ng-style="style()">
</div>