mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-22 13:29:29 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user