[MM-38649] Put top bar in a BrowserView (#1758)

* [MM-38649] Tab bar as BrowserView POC

* Fixes for Mac

* Linux fixes

* Lint fix

* Make view full height

* Fix for macOS getting stuck when dragging

* Lint fix
This commit is contained in:
Devin Binnie
2021-09-27 13:29:38 -04:00
committed by GitHub
parent 9c5e4880ea
commit c914903df9
6 changed files with 79 additions and 41 deletions

View File

@@ -22,6 +22,15 @@ export function shouldBeHiddenOnStartup(parsedArgv: Args) {
return false;
}
export function getMainViewBounds(windowWidth: number, windowHeight: number) {
return {
x: 0,
y: 0,
width: windowWidth,
height: windowHeight,
};
}
export function getWindowBoundaries(win: BrowserWindow, hasBackBar = false) {
const {width, height} = win.getContentBounds();
return getAdjustedWindowBoundaries(width, height, hasBackBar);