Skip to content

Commit

Permalink
fix(section): don't allocate height on hidden section
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 5, 2020
1 parent b414ee0 commit b655842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,10 @@ function formcreatorShowFields(form) {
if (!isNaN(sectionId)) {
if (sectionToShow[sectionId]) {
$('div[data-section-id="' + sectionId+ '"]').css('visibility', '');
$('div[data-section-id="' + sectionId+ '"]').css('height', '');
} else {
$('div[data-section-id="' + sectionId+ '"]').css('visibility', 'hidden');
$('div[data-section-id="' + sectionId+ '"]').css('height', '0');
}
}
}
Expand Down

0 comments on commit b655842

Please sign in to comment.