Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-07-29 03:11:16 +03:00
parent 2c05f20643
commit b46f0d164e

View File

@ -4591,10 +4591,13 @@ var HTMLBrowserPrototype = {
// ...this seems to be the case for nested browsers, their
// .dom looks to be still ditached from main dom at this
// point... (setTimeout(.., 0) does not fix this)
// ...one likely cause can be that we are someplace
// creating the elem twice, i.e. once within the nested
// browser and the other outside -- check...
var scrolled = ref.dom.offsetParent
scrolled.scrollTop =
ref.dom.offsetTop - scrolled.scrollTop - context.scroll_offset
ref.elem.offsetTop - scrolled.scrollTop - context.scroll_offset
}
// keep focus where it is...