是否可以在takbar上显示子窗口?
子窗口初始化如下:
代码:
const parentWin = evalParentWin(baseURL, winRefs);
const parentPosition = { x: parentWin.getPosition()[0], y: parentWin.getPosition()[1] };
const parentDisplay = electron.screen.getDisplayNearestPoint(parentPosition);
popup = new electron.BrowserWindow({
parent: parentWin,
x: parentDisplay.workArea.x + Math.floor(parentDisplay.workArea.width * ((1 - scaleFactor) / 2)),
y: parentDisplay.workArea.y + Math.floor(parentDisplay.workArea.height * ((1 - scaleFactor) / 2)),
width: Math.floor(parentDisplay.workArea.width * scaleFactor),
height: Math.floor(parentDisplay.workArea.height * scaleFactor),
icon: path.join(__dirname, '../../client/dist/img/512x512.png'),
webPreferences: {
devTools: isDevMode,
},
});
我浏览了文档,除了浏览器窗口的skipTaskbar以外,什么都没有找到。如果有人遇到类似问题,请提供帮助。提前Tnx