fix: getNormalBounds()
for transparent windows on Windows (#38218)
This commit is contained in:
parent
ad07712561
commit
32d8f84cad
2 changed files with 21 additions and 0 deletions
|
@ -1720,6 +1720,23 @@ describe('BrowserWindow module', () => {
|
|||
expect(w.isFullScreen()).to.equal(true);
|
||||
});
|
||||
|
||||
it('checks normal bounds for maximized transparent window', async () => {
|
||||
w.destroy();
|
||||
w = new BrowserWindow({
|
||||
transparent: true,
|
||||
show: false
|
||||
});
|
||||
w.show();
|
||||
|
||||
const bounds = w.getNormalBounds();
|
||||
|
||||
const maximize = once(w, 'maximize');
|
||||
w.maximize();
|
||||
await maximize;
|
||||
|
||||
expectBoundsEqual(w.getNormalBounds(), bounds);
|
||||
});
|
||||
|
||||
it('does not change size for a frameless window with min size', async () => {
|
||||
w.destroy();
|
||||
w = new BrowserWindow({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue