Skip to content

Commit aa01a1d

Browse files
committed
fix(section): don't allocate height on hidden section
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 91364c2 commit aa01a1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/scripts.js.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,10 @@ function formcreatorShowFields(form) {
636636
if (!isNaN(sectionId)) {
637637
if (sectionToShow[sectionId]) {
638638
$('div[data-section-id="' + sectionId+ '"]').css('visibility', '');
639+
$('div[data-section-id="' + sectionId+ '"]').css('height', '');
639640
} else {
640641
$('div[data-section-id="' + sectionId+ '"]').css('visibility', 'hidden');
642+
$('div[data-section-id="' + sectionId+ '"]').css('height', '0');
641643
}
642644
}
643645
}

0 commit comments

Comments
 (0)