witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in IE in which clicking a link sometimes caused the browser window to scroll down and then immediately back up.

This commit is contained in:
Dan Helfman 2008-11-11 11:40:26 -08:00
parent 25b2f2fe84
commit d5efdf2665
2 changed files with 7 additions and 0 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
1.5.6:
* Added permalinks to blog and discussion forum posts.
* Fixed a bug in Internet Explorer in which clicking a link sometimes caused
the browser window to scroll to the destination note, only to immediately
scroll back to the clicked link.
1.5.5: November 6, 2008
* Improved speed of Luminotes Desktop by adding some database indices. This

View File

@ -241,6 +241,10 @@ Editor.prototype.highlight = function ( scroll ) {
}
}
// focusing the highlighted editor before scrolling to it prevents IE from deciding to
// automatically scroll back to the link immediately afterwards
this.focus();
if ( scroll ) {
// if the editor is already completely on-screen, then there's no need to scroll
var viewport_position = getViewportPosition();