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
This commit is contained in:
timeless%mac.com 2002-10-08 23:41:52 +00:00
Родитель a8b4b70551
Коммит 7c8f6c9cb3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}