Welcome to the LimeSurvey Community Forum

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

answer display columns error

  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #142993 by Liod_DS
answer display columns error was created by Liod_DS
Hi all.

I have a question... when i display some answer on multi columns, and i put a filter on this answer ... the sistem apply the filter AFTER the count of the items, so i have a really bad display of the answers...

I tested even on the standard template , same messy positioning, have someone coded an hotfix or a fast way to get rid of the problem ?

image of an example attached, (27 answer item, filtred to 4 with "none of these" always visibile) where the first column is empty, the second have 1 item and the last 4...

i can't really change the columns number, i have to build some sort of jquery to repos all the visibile answer ?

keep improving
Attachments:
The topic has been locked.
More
7 years 5 months ago #142995 by jelo
Replied by jelo on topic answer display columns error
Which version/build of Limesurvey?
You should open a bug ticket for that.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #142997 by Liod_DS
Replied by Liod_DS on topic answer display columns error
Version 2.54.1+161010

i've fille a bug request this summer for a pretty similar problem (same as this but on a single)

bugs.limesurvey.org/view.php?id=10995

marked as solved... maybe is my installation that cause some problem :\

keep improving
The topic has been locked.
More
7 years 5 months ago #142999 by jelo
Replied by jelo on topic answer display columns error
Open a new one and point to your old bugticket. If you checked it with the default template there is only a small chance that the issue is caused by your installation.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: Liod_DS
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #143001 by Liod_DS
Replied by Liod_DS on topic answer display columns error
Done,

bug_tracker: bugs.limesurvey.org/view.php?id=11787

thanks for your time !

keep improving
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #143006 by DenisChenu
Replied by DenisChenu on topic answer display columns error
Maybe : don't set coluln width attribute : leave it empty.

Add a class : for example col3

And add this in your template.css (at end )
Code:
.col3 .answer-item {
    width: 33%;
}

Not perfect but can do the trick.

The order seems inlined like this :

1 2 3
4 5 6
7 8 9

Not like this:
1 4 7
2 5 8
3 6 9

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #143008 by Liod_DS
Replied by Liod_DS on topic answer display columns error
talking for my template and the new "default":

The class "col-sm-12" override my request going "width:100%"

It seem like the bootstrap gridsistem ... i think i can't just style a div inside this rule...

mmmm :|

keep improving
Attachments:
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #143010 by Liod_DS
Replied by Liod_DS on topic answer display columns error
Maybe i resolved ...

Using the answer relevance field it seems to work like expected....

Not very quick... a have 82 + answer for each question (15+) ... but for my early test it works...

keep improving
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago #143012 by Liod_DS
Replied by Liod_DS on topic answer display columns error

Liod_DS wrote: Maybe i resolved ...

Using the answer relevance field it seems to work like expected....

Not very quick... a have 82 + answer for each question (15+) ... but for my early test it works...


not true :side:

bad testing and good luck ...

i'm stuck :angry:

keep improving
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago - 7 years 5 months ago #143014 by DenisChenu
Replied by DenisChenu on topic answer display columns error
I just make a quick test updated with firebug the width.

And with
Code:
.col3 .col-sm-12 {
    width: 33% !important;
}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 5 months ago by DenisChenu.
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago - 7 years 5 months ago #143017 by Liod_DS
Replied by Liod_DS on topic answer display columns error
we need to put the upper container at 100% width
Code:
.col-sm-12 .answer{ 
width:100% !important;
}

but still a lot messed up :|

keep improving
Last edit: 7 years 5 months ago by Liod_DS. Reason: format
The topic has been locked.
  • Liod_DS
  • Liod_DS's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 5 months ago - 7 years 5 months ago #143020 by Liod_DS
Replied by Liod_DS on topic answer display columns error
i think i have to set
Code:
display:none;
all the empty <div>s ... in this case i can get it to work... i'm not a jQuery expert but with some selector is maybe possible...

something like :
Code:
  $(checkBoxNotDisplay).parent().closest('div').attr("display","none");

not skilled enough to find the checkboxes.... maybe tomorrow ... (any help would be appreciated :P)

keep improving
Last edit: 7 years 5 months ago by Liod_DS.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose