🚨
This commit is contained in:
parent
41873799c8
commit
1e108d2932
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ const showKeyboardToolbarUtil = (oldScrollTop: number) => {
|
|||
showUtil = true;
|
||||
|
||||
const toolbarElement = document.getElementById("keyboardToolbar");
|
||||
let keyboardHeight = toolbarElement.getAttribute("data-keyboardheight")
|
||||
let keyboardHeight = toolbarElement.getAttribute("data-keyboardheight");
|
||||
keyboardHeight = (keyboardHeight ? (parseInt(keyboardHeight) + 42) : window.innerHeight / 2) + "px";
|
||||
window.siyuan.mobile.editor.protyle.element.style.marginBottom = keyboardHeight;
|
||||
window.siyuan.mobile.editor.protyle.contentElement.scrollTop = oldScrollTop;
|
||||
|
|
Loading…
Add table
Reference in a new issue