correctHeadlinesOffset: add opera remark
This commit is contained in:
parent
0d88fd97df
commit
a5e46e0f76
|
@ -367,6 +367,10 @@ function correctHeadlinesOffset(id) {
|
|||
if (rel_offset_top <= 0 || rel_offset_top > viewport) {
|
||||
container.scrollTop = row.offsetTop;
|
||||
} else if (rel_offset_bottom > viewport) {
|
||||
|
||||
/* doesn't properly work with Opera in some cases because
|
||||
Opera fucks up element scrolling */
|
||||
|
||||
container.scrollTop = row.offsetTop + row.offsetHeight - viewport;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue