Commit 2c12f5f5 authored by xiongjinke's avatar xiongjinke

修改

parent 66dc3c32
...@@ -58,7 +58,8 @@ const scrolling = function (iframeId, navHeight, parentId){ ...@@ -58,7 +58,8 @@ const scrolling = function (iframeId, navHeight, parentId){
if(scrollTop<navHeight){ if(scrollTop<navHeight){
scrollTop = scrollTop+navHeight scrollTop = scrollTop+navHeight
} }
ifa.contentWindow.postMessage({ 'scrollTop': scrollTop }, '*') let bodyHeight = document.body.clientHeight - navHeight
ifa.contentWindow.postMessage({ 'scrollTop': scrollTop, 'bodyHeight': bodyHeight }, '*')
} }
export { export {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment