]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: min-height for tab match height
authorJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 22:03:23 +0000 (15:03 -0700)
committerJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 22:03:23 +0000 (15:03 -0700)
closes #11975

js/foundation.tabs.js

index 6e5248309eb52b28c48a09d4a34e63eb5ed27292..55a0b7f5e235300af76ec7730ddffa55f264912d 100644 (file)
@@ -389,7 +389,7 @@ class Tabs extends Plugin {
 
     this.$tabContent
       .find(`.${this.options.panelClass}`)
-      .css('height', '')
+      .css('min-height', '')
       .each(function() {
 
         var panel = $(this),
@@ -410,7 +410,7 @@ class Tabs extends Plugin {
 
         max = temp > max ? temp : max;
       })
-      .css('height', `${max}px`);
+      .css('min-height', `${max}px`);
   }
 
   /**