Skip to content

Commit

Permalink
Workaround a bug in FVTT on collapsed right sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Apr 16, 2021
1 parent e5c5fe2 commit c4757e5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.5.7
* Compatibility: Works around a bug in Foundry that prevents opening windows when sidebar is collapsed

### 0.5.6
* Enhancement: It is now possible to collapse right panel by default
* Compatibility: Minor fixes with DND-UI
Expand Down
7 changes: 7 additions & 0 deletions minimalui.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,13 @@ Hooks.once('ready', async function() {
}
}

// Temporarily work around a bug in Foundry VTT 0.7.9
$("#sidebar-tabs > a:nth-child(n)").click(function(eve) {
if (ui.sidebar._collapsed) {
ui.sidebar.activateTab(jQuery(eve.currentTarget).attr('data-tab'))
}
})

});

Hooks.on('renderCameraViews', async function() {
Expand Down
2 changes: 1 addition & 1 deletion 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 reduces size of Foundry interface and allows hiding or collapsing specific parts.",
"version": "0.5.6",
"version": "0.5.7",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9",
"esmodules": [ "lib/colorsettings/colorSetting.js" ],
Expand Down

0 comments on commit c4757e5

Please sign in to comment.