mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
This commit is contained in:
parent
5d92de41cc
commit
097501c84c
@ -294,6 +294,7 @@ export class BlockPanel {
|
|||||||
setPosition(this.element, targetRect.left, targetRect.bottom + 4, targetRect.height + 12, 8);
|
setPosition(this.element, targetRect.left, targetRect.bottom + 4, targetRect.height + 12, 8);
|
||||||
} else if (typeof this.x === "number" && typeof this.y === "number") {
|
} else if (typeof this.x === "number" && typeof this.y === "number") {
|
||||||
setPosition(this.element, this.x, this.y);
|
setPosition(this.element, this.x, this.y);
|
||||||
|
this.element.style.maxHeight = Math.floor(window.innerHeight - Math.max(this.y, Constants.SIZE_TOOLBAR_HEIGHT) - 12) + "px";
|
||||||
}
|
}
|
||||||
const elementRect = this.element.getBoundingClientRect();
|
const elementRect = this.element.getBoundingClientRect();
|
||||||
if (this.targetElement && !this.targetElement.classList.contains("protyle-wysiwyg__embed")) {
|
if (this.targetElement && !this.targetElement.classList.contains("protyle-wysiwyg__embed")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user