Mantis 82

Monotone-Parent: 4009db4e2bd5b1c933ea9b2c942a6a98e39e245f
Monotone-Revision: 6c6de2f0d403cfa411f80a8674bbd04da598e17e

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-29T14:39:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-29 14:39:13 +00:00
parent 67bfa03ef5
commit 6127c7f2e7

View File

@@ -640,8 +640,9 @@ function messageListCallback(http) {
row.selectElement();
lastClickedRow = row.rowIndex - $(row).up('table').down('thead').getElementsByTagName('tr').length;
var rowPosition = row.rowIndex * row.getHeight();
if (rowPosition > div.getHeight())
div.scrollTop = rowPosition; // scroll to selected message
if (rowPosition < div.scrollTop
|| rowPosition > div.scrollTop + div.getHeight ())
div.scrollTop = rowPosition; // scroll to selected message
}
else
$("messageContent").update();