Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

corrupted layout in multiple question

  • bhajipav
  • bhajipav's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #176064 by bhajipav
corrupted layout in multiple question was created by bhajipav
I use Tony's script to fix a number of sub-questions to the bottom of a multi-choice question.
Script:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {

// Identify this question
var qID = {QID};
var thisQuestion = $('#question'+qID);

// Define the sub-question codes to be placed last
var lastItems = ;

// Loop through those sub-question codes
$.each(lastItems, function(i, val) {
// Move that item to the end of the list
// Multi-choice question
if($(thisQuestion).hasClass('multiple-opt')) {
$('.question-item[id$=X'+qID+val+']', thisQuestion).parent().appendTo($('.subquestion-list', thisQuestion));
}
// Array question
if($(thisQuestion).hasClass('array-flexible-row')) {
$('.answers-list[id$=X'+qID+val+']', thisQuestion).appendTo($('table.subquestion-list', thisQuestion));
}
});
});
</script>

Works - nearly - fine.
Up to a screen width of 838 pixel. (see screenshot 1106)
But at a screen width of 837 the layout changes to (see screenshot 1107)

Is there any idea how to repair this?

Thanks in advance
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #176075 by tpartner
Replied by tpartner on topic corrupted layout in multiple question
Not without:

1) Your LimeSurvey version and theme used.
2) Some screenshots.
3) A small sample survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose