You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn(`Warning: minimum width (${restrictions.minWidth}px) greater that the image width (${this.imageSize.width}px). It is set equal to the image width and width resizing was blocked`);
console.warn(`Warning: minimum height (${restrictions.minHeight}px) greater that the image height (${this.imageSize.height}px). It is set equal to the image height and height resizing was blocked`);
285
-
restrictions.minHeight=this.imageSize.height;
286
-
restrictions.heightFrozen=true;
288
+
289
+
if (restrictions.minHeight< minSize) {
290
+
restrictions.minHeight=Math.floor(minSize);
287
291
}
288
292
289
293
if (restrictions.minWidth>restrictions.maxWidth) {
@@ -298,11 +302,13 @@ export default {
298
302
restrictions.heightFrozen=true;
299
303
}
300
304
301
-
if (!restrictions.maxWidth||restrictions.maxWidth>this.imageSize.width) {
302
-
restrictions.maxWidth=this.imageSize.width;
303
-
}
304
-
if (!restrictions.maxHeight||restrictions.maxHeight>this.imageSize.height) {
305
-
restrictions.maxHeight=this.imageSize.height;
305
+
if (this.imageRestriction==='area') {
306
+
if (!restrictions.maxWidth|| (restrictions.maxWidth>this.imageSize.width)) {
307
+
restrictions.maxWidth=this.imageSize.width;
308
+
}
309
+
if (!restrictions.maxHeight|| (restrictions.maxHeight>this.imageSize.height)) {
0 commit comments