Show borders on 2 sides of the frame header when expanded too

the trick was: do it by having this border at the bottom of the framedetails.
and: to be able to collapse the border too: make div-in-div.

This gets rid of the remove-flex-when-collapsing code too
This commit is contained in:
Klaas van Schelven
2023-11-19 21:20:20 +01:00
parent 1c8b03828a
commit 1e342dbd18
2 changed files with 5 additions and 5 deletions

View File

@@ -34,8 +34,6 @@ function collapseSection(element) {
setBodyMinHeight();
element.classList.remove("xl:flex"); // this appears to be necessary, not sure why
// temporarily disable all css transitions
const elementTransition = element.style.transition;
element.style.transition = '';
@@ -65,8 +63,6 @@ function expandSection(element) {
setBodyMinHeight();
element.classList.add("xl:flex"); // add back
// get the height of the element's inner content, regardless of its actual size
const sectionHeight = element.scrollHeight;