Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: LayoutTests/fast/scroll-behavior/listbox-scrollTop.html

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698