mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🚨
This commit is contained in:
parent
13ba672d1b
commit
2d348be542
7 changed files with 14 additions and 16 deletions
|
|
@ -33,7 +33,7 @@ export class Menu {
|
|||
itemElement.classList.add("b3-menu__item--show");
|
||||
const rect = subMenuElement.getBoundingClientRect();
|
||||
let style = "";
|
||||
const leftPosition = rect.left - this.element.clientWidth - rect.width
|
||||
const leftPosition = rect.left - this.element.clientWidth - rect.width;
|
||||
if (rect.right > window.innerWidth && (
|
||||
leftPosition > 0 || Math.abs(leftPosition) < (rect.right - window.innerWidth))) {
|
||||
if (leftPosition >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue