Skip to content

Commit ed4b08e

Browse files
committed
fix last commit
1 parent 7ca7774 commit ed4b08e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/htmlunit/javascript/host/html/HTMLElement.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -1052,13 +1052,8 @@ public int getOffsetLeft() {
10521052
}
10531053

10541054
if (offsetParent != null) {
1055-
style = webWindow.getComputedStyle(htmlElement, null);
1056-
final boolean thisElementHasLeftMargin = style.getMarginLeftValue() != 0;
1057-
10581055
style = webWindow.getComputedStyle(offsetParent.getDomNodeOrDie(), null);
1059-
if (!thisElementHasLeftMargin) {
1060-
left += style.getMarginLeftValue();
1061-
}
1056+
left += style.getMarginLeftValue();
10621057
left += style.getPaddingLeftValue();
10631058
}
10641059

0 commit comments

Comments
 (0)