Index: LayoutTests/fast/events/offsetX-offsetY.html |
diff --git a/LayoutTests/fast/events/offsetX-offsetY.html b/LayoutTests/fast/events/offsetX-offsetY.html |
index 886b35fad181a26863dd5ad79f783f609113f3c9..06abfdbeeb050b146af190cfd54401031167e48c 100644 |
--- a/LayoutTests/fast/events/offsetX-offsetY.html |
+++ b/LayoutTests/fast/events/offsetX-offsetY.html |
@@ -77,7 +77,9 @@ |
positions = sumPositions(content); |
var inside = document.getElementById('inside-overflow'); |
var overflow = document.getElementById('overflow'); |
- clientX = positions.offsetLeft + overflow.clientLeft + content.clientWidth - inside.clientWidth - window.scrollX + offsetX; |
+ var borderWidth = 2; |
+ var scrollbarWidth = overflow.offsetWidth - overflow.clientWidth - 2*borderWidth; |
+ clientX = positions.offsetLeft + overflow.clientLeft + content.clientWidth - scrollbarWidth - inside.clientWidth - window.scrollX + offsetX; |
dispatchEvent(clientX, clientY, 'inside-overflow', offsetX, offsetY); |
offsetX = 11; |