mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +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;
 | 
					  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