mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
adb8f65c10
commit
2d52dbfd1c
8 changed files with 4 additions and 70 deletions
|
@ -861,14 +861,12 @@ app.whenReady().then(() => {
|
|||
ipcMain.on("siyuan-export-newwindow", (event, data) => {
|
||||
const parentWnd = getWindowByContentId(event.sender.id);
|
||||
// The PDF/Word export preview window automatically adjusts according to the size of the main window https://github.com/siyuan-note/siyuan/issues/10554
|
||||
const width = parentWnd.getBounds().width * 0.8;
|
||||
const height = parentWnd.getBounds().height * 0.8;
|
||||
const printWin = new BrowserWindow({
|
||||
parent: parentWnd,
|
||||
modal: false,
|
||||
show: true,
|
||||
width: width,
|
||||
height: height,
|
||||
width: Math.floor(parentWnd.getBounds().width * 0.8),
|
||||
height: Math.floor(parentWnd.getBounds().height * 0.8),
|
||||
resizable: false,
|
||||
frame: "darwin" === process.platform,
|
||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue