mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 18:56:09 +01:00
This commit is contained in:
parent
5786711b1b
commit
7116be946c
1 changed files with 4 additions and 3 deletions
|
|
@ -471,11 +471,12 @@ export class WYSIWYG {
|
|||
return;
|
||||
}
|
||||
const documentSelf = document;
|
||||
const protyleRect = protyle.element.getBoundingClientRect();
|
||||
const wysiwygRect = protyle.wysiwyg.element.getBoundingClientRect();
|
||||
const wysiwygStyle = window.getComputedStyle(protyle.wysiwyg.element);
|
||||
const mostLeft = wysiwygRect.left + (parseFloat(wysiwygStyle.paddingLeft) || 24) + 1;
|
||||
const mostRight = wysiwygRect.right - (parseFloat(wysiwygStyle.paddingRight) || 16) - 2;
|
||||
const mostLeft = wysiwygRect.left + (parseInt(wysiwygStyle.paddingLeft) || 24) + 1;
|
||||
const mostRight = wysiwygRect.right - (parseInt(wysiwygStyle.paddingRight) || 16) - 2;
|
||||
|
||||
const protyleRect = protyle.element.getBoundingClientRect();
|
||||
const mostBottom = protyleRect.bottom;
|
||||
const y = event.clientY;
|
||||
const contentRect = protyle.contentElement.getBoundingClientRect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue