зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a8b4b70551
Коммит
7c8f6c9cb3
|
@ -143,12 +143,12 @@ NS_IMETHODIMP nsScrollBoxObject::ScrollByIndex(PRInt32 dindexes)
|
||||||
while(child) {
|
while(child) {
|
||||||
child->GetBounds(rect);
|
child->GetBounds(rect);
|
||||||
if (horiz) {
|
if (horiz) {
|
||||||
diff = rect.x + rect.width;
|
diff = rect.x + rect.width/2; // use the center, to avoid rounding errors
|
||||||
if (diff > cp.x) {
|
if (diff > cp.x) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
diff = rect.y + rect.height;
|
diff = rect.y + rect.height/2;// use the center, to avoid rounding errors
|
||||||
if (diff > cp.y) {
|
if (diff > cp.y) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче