Parcourir la source

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

YaolongHan il y a 4 ans
Parent
commit
b5247c5faf
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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 &&