mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-26 12:41:28 +00:00
correctHeadlinesOffset: add opera remark
This commit is contained in:
@@ -363,10 +363,14 @@ function correctHeadlinesOffset(id) {
|
||||
|
||||
debug("Rtop: " + rel_offset_top + " Rbtm: " + rel_offset_bottom);
|
||||
debug("Vport: " + viewport);
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user