Welcome, Guest
Username: Password: Remember me

TOPIC: Ranking: decrease lenght of box which displays items to be ranked

Ranking: decrease lenght of box which displays items to be ranked 5 months 4 days ago #107983

  • Bart
  • Bart's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Karma: 0
I created a Question Type Ranking.
on this question type I also use an array filter.
The length of the box in which the to be chosen items are displayed is a fixed length, not influenced by the array filter, but based upon the (maximum) number of possible items in the question.
This displays very ugly, especially if there is a large number of empty items which are suppressed by the use of the array filter.
Any tips on how to resolve this? Workaround?
The administrator has disabled public write access.

Ranking: decrease lenght of box which displays items to be ranked 5 months 3 days ago #108002

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
Add this to the end of template.css, replacing "QQ" with your question ID.

#questionQQ .dragDropChoiceList {
	min-height: 0 !important;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Ranking: decrease lenght of box which displays items to be ranked 5 months 3 days ago #108004

  • Bart
  • Bart's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Karma: 0
Hi Tony,

thx for your respons.

Alas not successful, still too large box around ranking items.
I attached a screenprint, which might shed some more light on this.

Question has theoretically 108 options, so there are 108 subquestions.
But this numbers is decreased using an array filter. In the attached screen print 9 choices, or 9 items to be ranked.

The display box surrounding however calculates without the array filter, so the lenght is based upon 108 options, in stead of the 9.

The screenprint only shows 1 screen, but to reach the end of the question, i have to scroll down much further.
Attachments:
The administrator has disabled public write access.

Ranking: decrease lenght of box which displays items to be ranked 5 months 3 days ago #108005

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
That should work if you use the correct ID. Can you activate a test survey for me to see?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Ranking: decrease lenght of box which displays items to be ranked 5 months 3 days ago #108010

  • Bart
  • Bart's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Karma: 0
tony,

pls find attached a simple example,
thx,

Bart
Attachments:
The administrator has disabled public write access.

Ranking: decrease lenght of box which displays items to be ranked 5 months 3 days ago #108011

  • Bart
  • Bart's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Karma: 0
tony,

seems to work fine, now.
I changed to another survey, in order to make the example (from the former post).
I moved back to my original survey, and now it is handling it all fine.
Apparently, I needed to do some sort of refresh......


Anyway, it is working now.
thx again for your support,
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.154 seconds
Donation Image