[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user