Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

How to adjust row height in Maxdiff

Hi,

I want all items in the MD to have the same row height. How do I do this?
asked Oct 24, 2018 by Lise kr

1 Answer

+1 vote
I took a stab at this with this script:

<script>
$(window).on('load', updateMaxDiffRowHeights);
$(window).resize(updateMaxDiffRowHeights);

function updateMaxDiffRowHeights() {
    $('.maxdiff').each(function(){
        var trs = $(this).find('.inner_table > tbody > tr:not(:first-child)');
        $(trs).height('auto');
        var maxHeight = 0;
        $(trs).each(function(){
            var height = $(this).height();
            if (height > maxHeight) {
                maxHeight = height;
            }
        });
        $(trs).height(maxHeight);
    });
}
</script>
answered Oct 24, 2018 by Zachary Platinum Sawtooth Software, Inc. (108,875 points)
...