fix(electrobun): setFrame takes positional args, not object — was causing resize jump
This commit is contained in:
parent
31e7c422e4
commit
cfb7dafa17
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ const rpc = BrowserView.defineRPC<PtyRPCSchema>({
|
|||
"window.getFrame": () => { try { return mainWindow.getFrame(); } catch { return { x: 0, y: 0, width: 1400, height: 900 }; } },
|
||||
"window.setPosition": ({ x, y }: { x: number; y: number }) => { try { mainWindow.setPosition(x, y); return { ok: true }; } catch { return { ok: false }; } },
|
||||
"window.setFrame": ({ x, y, width, height }: { x: number; y: number; width: number; height: number }) => {
|
||||
try { mainWindow.setFrame({ x, y, width, height }); return { ok: true }; } catch { return { ok: false }; }
|
||||
try { mainWindow.setFrame(x, y, width, height); return { ok: true }; } catch (err) { console.error("[window.setFrame]", err); return { ok: false }; }
|
||||
},
|
||||
},
|
||||
messages: {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue