correctHeadlinesOffset: check for elements to work on
This commit is contained in:
parent
b8cdc39433
commit
e4f48f8621
|
@ -1793,6 +1793,8 @@ function correctHeadlinesOffset(id) {
|
||||||
var container = $("headlines-frame");
|
var container = $("headlines-frame");
|
||||||
var row = $("RROW-" + id);
|
var row = $("RROW-" + id);
|
||||||
|
|
||||||
|
if (!container || !row) return;
|
||||||
|
|
||||||
var viewport = container.offsetHeight;
|
var viewport = container.offsetHeight;
|
||||||
|
|
||||||
var rel_offset_top = row.offsetTop - container.scrollTop;
|
var rel_offset_top = row.offsetTop - container.scrollTop;
|
||||||
|
|
Loading…
Reference in New Issue