JSFiddle - React, Tailwind, and code Playground
by hollandben
JavaScript
function accordionContentHeight() {
var headerHeight = $('#accordion .link-header', obj).outerHeight();
var windowHeight = $(window).height();
var cords = accordionCount;
console.log(windowHeight);
var contentHeight = (windowHeight-(cords*headerHeight));
console.log(contentHeight);
$('.link-content', obj).css({
'height':contentHeight+'px'
});
}