cdmScrollToArticleId: use more natural scrolling

master
Andrew Dolgov 12 years ago
parent cb0810962c
commit 3af9dbd350

@ -1132,7 +1132,11 @@ function cdmScrollToArticleId(id) {
if (!e || !ctr) return;
ctr.scrollTop = e.offsetTop;
if (e.offsetTop+e.offsetHeight > (ctr.scrollTop+ctr.offsetHeight) ||
e.offsetTop < ctr.scrollTop) {
ctr.scrollTop = e.offsetTop;
}
} catch (e) {
exception_error("cdmScrollToArticleId", e);

Loading…
Cancel
Save