Browse Source

图片最小宽高可设置为0

zhangyu 4 years ago
parent
commit
4ccaef0682
1 changed files with 2 additions and 2 deletions
  1. 2 2
      persagy-web-edit/src/items/SBaseImageEdit.ts

+ 2 - 2
persagy-web-edit/src/items/SBaseImageEdit.ts

@@ -174,7 +174,7 @@ export class SBaseImageEdit extends SGraphEdit {
         return this._width;
     }
     set width(v: number) {
-        if (v > 0) {
+        if (v >= 0) {
             if (v != this._width) {
                 let w = this._width;
                 this._width = v;
@@ -193,7 +193,7 @@ export class SBaseImageEdit extends SGraphEdit {
         return this._height;
     }
     set height(v: number) {
-        if (v > 0) {
+        if (v >= 0) {
             if (v != this._height) {
                 let h = this._height;
                 this._height = v;