mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2c05f20643
commit
b46f0d164e
@ -4591,10 +4591,13 @@ var HTMLBrowserPrototype = {
|
|||||||
// ...this seems to be the case for nested browsers, their
|
// ...this seems to be the case for nested browsers, their
|
||||||
// .dom looks to be still ditached from main dom at this
|
// .dom looks to be still ditached from main dom at this
|
||||||
// point... (setTimeout(.., 0) does not fix 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
|
var scrolled = ref.dom.offsetParent
|
||||||
|
|
||||||
scrolled.scrollTop =
|
scrolled.scrollTop =
|
||||||
ref.dom.offsetTop - scrolled.scrollTop - context.scroll_offset
|
ref.elem.offsetTop - scrolled.scrollTop - context.scroll_offset
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep focus where it is...
|
// keep focus where it is...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user