revert: compensate for title bar height when setting bounds on BrowserView
(#38981)
This reverts commit 75f9573e53
.
This commit is contained in:
parent
ec4c9024b9
commit
5a77c75753
2 changed files with 9 additions and 39 deletions
|
@ -146,14 +146,7 @@ describe('BrowserView module', () => {
|
|||
});
|
||||
|
||||
describe('BrowserView.getBounds()', () => {
|
||||
it('returns correct bounds on a framed window', () => {
|
||||
view = new BrowserView();
|
||||
const bounds = { x: 10, y: 20, width: 30, height: 40 };
|
||||
view.setBounds(bounds);
|
||||
expect(view.getBounds()).to.deep.equal(bounds);
|
||||
});
|
||||
|
||||
it('returns correct bounds on a frameless window', () => {
|
||||
it('returns the current bounds', () => {
|
||||
view = new BrowserView();
|
||||
const bounds = { x: 10, y: 20, width: 30, height: 40 };
|
||||
view.setBounds(bounds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue