We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca7774 commit ed4b08eCopy full SHA for ed4b08e
src/main/java/org/htmlunit/javascript/host/html/HTMLElement.java
@@ -1052,13 +1052,8 @@ public int getOffsetLeft() {
1052
}
1053
1054
if (offsetParent != null) {
1055
- style = webWindow.getComputedStyle(htmlElement, null);
1056
- final boolean thisElementHasLeftMargin = style.getMarginLeftValue() != 0;
1057
-
1058
style = webWindow.getComputedStyle(offsetParent.getDomNodeOrDie(), null);
1059
- if (!thisElementHasLeftMargin) {
1060
- left += style.getMarginLeftValue();
1061
- }
+ left += style.getMarginLeftValue();
1062
left += style.getPaddingLeftValue();
1063
1064
0 commit comments