Skip to content

Commit 94e2863

Browse files
Fix error in Element.positionedOffset that made incorrect adjustments for margins. [close prototypejs#141]
1 parent 72ff0df commit 94e2863

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prototype/dom/layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@
11141114
}
11151115
} while (element);
11161116

1117-
valueL -= layout.get('margin-top');
1118-
valueT -= layout.get('margin-left');
1117+
valueL -= layout.get('margin-left');
1118+
valueT -= layout.get('margin-top');
11191119

11201120
return new Element.Offset(valueL, valueT);
11211121
}

0 commit comments

Comments
 (0)