mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
7881d97e84
commit
0e23e2c04b
12 changed files with 39 additions and 53 deletions
|
|
@ -66,9 +66,9 @@ export class Menu {
|
|||
this.element.append(element);
|
||||
}
|
||||
|
||||
public popup(options: { x: number, y: number }) {
|
||||
public popup(options: { x: number, y: number, h?: number }, isLeft = false) {
|
||||
this.element.classList.remove("fn__none");
|
||||
setPosition(this.element, options.x, options.y);
|
||||
setPosition(this.element, options.x - (isLeft ? window.siyuan.menus.menu.element.clientWidth : 0), options.y, options.h);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue