Skip to content

Commit

Permalink
Fix window sizeo n overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed May 29, 2021
1 parent 6a011d5 commit 19f6d84
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.9.9
* Bugfix: Fixed windows restoring to a wrong size when exceeding taskbar width

### 0.9.8
* Special: Release to put back on track 0.7.9 People (sorry for inconvenience)

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Minimal UI",
"author": "JeansenVaars#2857",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"version": "0.9.8",
"version": "0.9.9",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9",
"dependencies": [
Expand All @@ -26,5 +26,5 @@
],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/foundryvtt-minimal-ui_0.9.8.zip"
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/foundryvtt-minimal-ui_0.9.9.zip"
}
9 changes: 6 additions & 3 deletions modules/feature/minimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ export default class MinimalUIMinimize {
if (MinimalUIMinimize.minimizedStash[i]?.app.appId === app.appId) {
MinimalUIMinimize.minimizedStash[i].oldPosition = Object.assign({}, app.position);
targetPos = i;
break;
return targetPos;
} else if (!targetPos && !MinimalUIMinimize.minimizedStash[i]?.app.rendered) {
MinimalUIMinimize.minimizedStash[i] = {app: app, oldPosition: Object.assign({}, app.position)};
targetPos = i;
break;
return targetPos;
}
}
return targetPos;
let appI = app.position.left;
while (appI in MinimalUIMinimize.minimizedStash) appI += 20;
MinimalUIMinimize.minimizedStash[appI] = {app: app, oldPosition: Object.assign({}, app.position)};
return appI;
}

static setMinimizedPosition(app) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundryvtt-minimal-ui",
"version": "0.9.8",
"version": "0.9.9",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down

0 comments on commit 19f6d84

Please sign in to comment.