Fixes a few oversights in image cropper
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user