- Posts: 193
- Thank you received: 69
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify the questions var thisQuestion = $('#question{QID}'); // Dynamically adjust list heights var listHeight = 0; $('li.choice:visible', thisQuestion).each(function(i) { listHeight = listHeight + $(this).outerHeight(); }); setTimeout(function() { $('.dragDropTable ul, .dragDropTable ol', thisQuestion).css('min-height', listHeight+50+'px'); }, 250); }); </script>
Not exactly a bug if i remind ?tpartner wrote: Hi Elissa,
The problem is that the irrelevant items are hidden via JavaScript after the jQuery UI Sortable plugin is rendered. (or there is a bug)