rebuilding site Thu Sep 24 09:59:25 AM CST 2020

This commit is contained in:
James Feng Cao 2020-09-24 09:59:25 +08:00
parent 954aad99dd
commit 7503bf0dae

View file

@ -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;
}