소스 검색

图片最小宽高可设置为0

zhangyu 4 년 전
부모
커밋
4ccaef0682
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;