Skip to content

Commit

Permalink
feat: display control, if there is a widget out of bounds set to defa…
Browse files Browse the repository at this point in the history
…ult position
  • Loading branch information
sametcn99 committed May 12, 2024
1 parent 775fd95 commit 37b0800
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@electron-forge/shared-types": "^7.4.0",
"@heroicons/vue": "^2.1.3",
"chokidar": "^3.6.0",
"electron-data-storage": "^1.1.3",
"electron-is": "^3.0.0",
"electron-localshortcut": "^3.2.1",
"electron-squirrel-startup": "^1.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/utils/display-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export function displayControl() {
const data = getWidgetsJson(config.widgetsJsonPath);
let totalWidth: number = 0;
let minHeight: number = 0;
console.log(screen.getDisplayMatching({ x: 0, y: 0, width: 0, height: 0 }));
screen.getAllDisplays().forEach((display) => {
// get the minimum height of the display
if (display.bounds.height < minHeight || minHeight === 0) {
Expand Down

0 comments on commit 37b0800

Please sign in to comment.