Index: LayoutTests/fast/scroll-behavior/listbox-scrollTop.html |
diff --git a/LayoutTests/fast/scroll-behavior/listbox-scrollTop.html b/LayoutTests/fast/scroll-behavior/listbox-scrollTop.html |
index f10b826024858dcc2a595148c12cea9e6a71202a..00207a2bb9ef53cdce7a09f90a056a8e95bf8cbe 100644 |
--- a/LayoutTests/fast/scroll-behavior/listbox-scrollTop.html |
+++ b/LayoutTests/fast/scroll-behavior/listbox-scrollTop.html |
@@ -51,8 +51,7 @@ function doTest() |
{ |
var element = document.getElementById("listbox"); |
initializeContents(element); |
- var itemHeight = (listbox.scrollHeight - listbox.clientHeight) / (numItems - listbox.size); |
- |
+ var itemHeight = Math.floor(listbox.clientHeight / listbox.size); |
var testCases = []; |
for (var i = 0; i < testScrolls.length; i++) { |
// Convert from list box item index to a scroll offset. |