mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 03:58:07 +01:00
This commit is contained in:
parent
0aaa701df7
commit
50edc635c1
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ import {setTitle} from "../dialog/processSystem";
|
|||
import {newCenterEmptyTab, resizeTabs} from "./tabUtil";
|
||||
import {fullscreen} from "../protyle/breadcrumb/action";
|
||||
import {setPadding} from "../protyle/ui/initUI";
|
||||
import {setPosition} from "../util/setPosition";
|
||||
|
||||
export class Wnd {
|
||||
private app: App;
|
||||
|
|
@ -617,6 +618,7 @@ export class Wnd {
|
|||
this.removeTab(item.getAttribute("data-id"));
|
||||
if (element.previousElementSibling || element.nextElementSibling) {
|
||||
element.remove();
|
||||
setPosition(window.siyuan.menus.menu.element, rect.left + rect.width - window.siyuan.menus.menu.element.clientWidth, rect.top + rect.height);
|
||||
} else {
|
||||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue