mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
Fix collapsed menu after reload on state closed
This commit is contained in:
parent
549824c91f
commit
44be2b99d2
@ -65,6 +65,7 @@
|
||||
overflow: hidden;
|
||||
margin: -20px;
|
||||
padding: 20px;
|
||||
box-sizing:content-box;
|
||||
}
|
||||
|
||||
.feature-group-container.animated-group {
|
||||
|
@ -268,7 +268,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
const parent = header.parentNode;
|
||||
const container = header.parentNode.querySelector(".feature-group-container");
|
||||
if (parent.id !== "groupFavorites") {
|
||||
container.style.maxHeight = container.clientHeight + "px";
|
||||
container.style.maxHeight = container.scrollHeight + "px";
|
||||
}
|
||||
header.onclick = () => {
|
||||
expandCollapseToggle(parent);
|
||||
|
Loading…
Reference in New Issue
Block a user