mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
b542a80f56
commit
065575214e
1 changed files with 2 additions and 1 deletions
|
|
@ -296,7 +296,8 @@ export class WYSIWYG {
|
|||
const documentSelf = document;
|
||||
const rect = protyle.element.getBoundingClientRect();
|
||||
const mostLeft = rect.left + parseInt(protyle.wysiwyg.element.style.paddingLeft) + 1;
|
||||
const mostRight = mostLeft + protyle.wysiwyg.element.firstElementChild.clientWidth - 1;
|
||||
// 不能用 firstElement,否则 https://ld246.com/article/1668758661338
|
||||
const mostRight = mostLeft + (protyle.wysiwyg.element.clientWidth - parseInt(protyle.wysiwyg.element.style.paddingLeft) - parseInt(protyle.wysiwyg.element.style.paddingRight)) - 1;
|
||||
const mostBottom = rect.bottom;
|
||||
const y = event.clientY;
|
||||
// 图片、iframe、video 缩放
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue