mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
87fbdc306c
commit
98eb307a28
1 changed files with 5 additions and 4 deletions
|
|
@ -148,12 +148,13 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {
|
|||
const showKeyboardToolbarUtil = (oldScrollTop: number) => {
|
||||
window.siyuan.menus.menu.remove();
|
||||
showUtil = true;
|
||||
|
||||
const toolbarElement = document.getElementById("keyboardToolbar");
|
||||
const keyboardHeight = (parseInt(toolbarElement.getAttribute("data-keyboardheight")) + 42) + "px";
|
||||
window.siyuan.mobile.editor.protyle.element.style.marginBottom = keyboardHeight;
|
||||
window.siyuan.mobile.editor.protyle.contentElement.scrollTop = oldScrollTop;
|
||||
setTimeout(() => {
|
||||
const toolbarElement = document.getElementById("keyboardToolbar");
|
||||
const keyboardHeight = (parseInt(toolbarElement.getAttribute("data-keyboardheight")) + 42) + "px";
|
||||
toolbarElement.style.height = keyboardHeight;
|
||||
window.siyuan.mobile.editor.protyle.element.style.marginBottom = keyboardHeight;
|
||||
window.siyuan.mobile.editor.protyle.contentElement.scrollTop = oldScrollTop;
|
||||
}, Constants.TIMEOUT_TRANSITION); // 防止抖动
|
||||
setTimeout(() => {
|
||||
showUtil = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue