mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Thu Sep 24 09:59:25 AM CST 2020
This commit is contained in:
parent
954aad99dd
commit
7503bf0dae
1 changed files with 8 additions and 6 deletions
|
@ -39,6 +39,7 @@ function is_same_size_position(ele1, ele2) {
|
|||
}
|
||||
|
||||
function find_top_wrap_ele(ele) {
|
||||
let origE = ele;
|
||||
let wrap = ele;
|
||||
while (ele.tagName !== 'BODY') {
|
||||
ele = ele.parentElement;
|
||||
|
@ -46,6 +47,7 @@ function find_top_wrap_ele(ele) {
|
|||
wrap = ele;
|
||||
}
|
||||
}
|
||||
if(wrap == origE) wrap = origE.parentElement;
|
||||
return wrap;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue