소스 검색

Merge branch 'master' of http://39.106.8.246:3003/web/persagy-web

YaolongHan 4 년 전
부모
커밋
b5247c5faf
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      persagy-web-draw/src/types/SRect.ts

+ 3 - 3
persagy-web-draw/src/types/SRect.ts

@@ -345,21 +345,21 @@ export class SRect {
             intersectMinY = rect.top;
         } else {
             minY = rect.top;
-            intersectMinY = rect.top;
+            intersectMinY = this.top;
         }
         if (this.right > rect.right) {
             maxX = this.right;
             intersectMaxX = rect.right;
         } else {
             maxX = rect.right;
-            intersectMaxX = rect.right;
+            intersectMaxX = this.right;
         }
         if (this.bottom > rect.bottom) {
             maxY = this.bottom;
             intersectMaxY = rect.bottom;
         } else {
             maxY = rect.bottom;
-            intersectMaxY = rect.bottom;
+            intersectMaxY = this.bottom;
         }
         if (
             this.width + rect.width > maxX - minX &&