From 7c8f6c9cb33f56b597085b1322f3608eaaa3211d Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Tue, 8 Oct 2002 23:41:52 +0000 Subject: [PATCH] Bug 163104 Long lists of folders/bookmarks down arrow does not work correctly patch by adrianm2@yahoo.com r=dean_tessman@hotmail.com sr=jag --- layout/xul/base/src/nsScrollBoxObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/xul/base/src/nsScrollBoxObject.cpp b/layout/xul/base/src/nsScrollBoxObject.cpp index 97fbeda7c0a..4c92cb394cc 100644 --- a/layout/xul/base/src/nsScrollBoxObject.cpp +++ b/layout/xul/base/src/nsScrollBoxObject.cpp @@ -143,12 +143,12 @@ NS_IMETHODIMP nsScrollBoxObject::ScrollByIndex(PRInt32 dindexes) while(child) { child->GetBounds(rect); if (horiz) { - diff = rect.x + rect.width; + diff = rect.x + rect.width/2; // use the center, to avoid rounding errors if (diff > cp.x) { break; } } else { - diff = rect.y + rect.height; + diff = rect.y + rect.height/2;// use the center, to avoid rounding errors if (diff > cp.y) { break; }