Skip to content

Commit 1ebd329

Browse files
author
Denys Zaiats
committed
[1.4.2-fix-validation-overlapping] - fixed error message for Grid verification
1 parent 228bcd6 commit 1ebd329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/util/validator/ResponsiveUIValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ private boolean elementsAreOverlappedOnBorder(WebElement rootElement, WebElement
802802

803803
int sqCommon = 0;
804804
if ((xRoot < elLoc.x && yRoot == elLoc.y) || (yRoot < elLoc.y && xRoot == elLoc.x)) {
805-
sqCommon = (xRoot + widthRoot + elSize.width) + (yRoot + heightRoot + elSize.height);
805+
sqCommon = (xRoot + widthRoot + elSize.width) * (yRoot + heightRoot + elSize.height);
806806
} else if ((elLoc.x < xRoot && yRoot == elLoc.y) || (elLoc.y < yRoot && xRoot == elLoc.x)) {
807807
sqCommon = (elLoc.x + elSize.width + widthRoot) * (elLoc.y + elSize.height + heightRoot);
808808
}

0 commit comments

Comments
 (0)