🐛 修复插件窗口打开尺寸偏小的bug

This commit is contained in:
muwoo 2023-04-21 13:52:00 +08:00
parent 9f81854139
commit 668a470276
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "2.2.3",
"version": "2.2.4",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {

View File

@ -80,7 +80,7 @@ export default () => {
view.webContents.once('dom-ready', () => {
const height = pluginSetting && pluginSetting.height;
window.setSize(800, height || 660);
view.setBounds({ x: 0, y: 60, width: 800, height: height || 660 });
view.setBounds({ x: 0, y: 60, width: 800, height: height || 600 });
view.setAutoResize({ width: true });
executeHooks('PluginEnter', plugin.ext);
executeHooks('PluginReady', plugin.ext);