mirror of
https://github.com/purocean/yn.git
synced 2026-10-13 07:38:54 +08:00
修复高度适应
This commit is contained in:
@@ -142,7 +142,7 @@ Plugin.load = async (el, repo, path) => {
|
||||
const resize = () => {
|
||||
el.contentDocument.body.style.height = 'auto'
|
||||
el.contentDocument.documentElement.style.height = 'auto'
|
||||
el.height = el.contentDocument.documentElement.scrollHeight + 'px'
|
||||
el.height = el.contentDocument.documentElement.offsetHeight + 'px'
|
||||
el.contentDocument.body.style.height = el.contentDocument.body.clientHeight + 'px'
|
||||
el.contentDocument.documentElement.style.height = '100%'
|
||||
window.appVm.$bus.emit('resize')
|
||||
|
||||
Reference in New Issue
Block a user