Skip to content

Commit

Permalink
Fixed incorrect maximize when sidebar visible
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed May 2, 2021
1 parent 8721fd2 commit 39c42b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 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.4
* Bugfix: Maximize now works fine when sidebar is uncollapsed (moves to left)

### 0.9.3
* Enhancement: New Maximize button available! (Default on, can be disabled)
* Bugfix: Fixed a bug causing some minimized windows to restore incorrectly
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.3",
"version": "0.9.4",
"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.3.zip"
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/foundryvtt-minimal-ui_0.9.4.zip"
}
5 changes: 3 additions & 2 deletions modules/feature/minimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class MinimalUIMinimize {
app.element
.find(".fa-window-restore")
.removeClass('fa-window-restore')
.addClass('fa-window-maximize')
.addClass('fa-window-maximize');
delete app._maximized;
} else {
const board = $("#board");
Expand All @@ -219,10 +219,11 @@ export default class MinimalUIMinimize {
left: 5,
top: 10
});
app.setPosition({left: 5});
app.element
.find(".fa-window-maximize")
.removeClass('fa-window-maximize')
.addClass('fa-window-restore')
.addClass('fa-window-restore');
}
}

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.3",
"version": "0.9.4",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down

0 comments on commit 39c42b2

Please sign in to comment.