mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +01:00
Merge pull request #2440 from MaratheHarshad/fix/collapsible-menus-on-reload
Fix collapsed menu issue on page reload
This commit is contained in:
commit
50c5efac87
@ -65,6 +65,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: -20px;
|
margin: -20px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
box-sizing:content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-group-container.animated-group {
|
.feature-group-container.animated-group {
|
||||||
|
@ -268,7 +268,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
const parent = header.parentNode;
|
const parent = header.parentNode;
|
||||||
const container = header.parentNode.querySelector(".feature-group-container");
|
const container = header.parentNode.querySelector(".feature-group-container");
|
||||||
if (parent.id !== "groupFavorites") {
|
if (parent.id !== "groupFavorites") {
|
||||||
container.style.maxHeight = container.clientHeight + "px";
|
container.style.maxHeight = container.scrollHeight + "px";
|
||||||
}
|
}
|
||||||
header.onclick = () => {
|
header.onclick = () => {
|
||||||
expandCollapseToggle(parent);
|
expandCollapseToggle(parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user