Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
03825Bug reportsSurvey takingpublic2009-12-11 12:17
Reportertpartner Assigned Totpartner  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Target Version1.87RC5Fixed in Version1.87RC5 
Summary03825: List (radio) by columns not behaving
Description

If the "Display columns" attribute of a radio question is set to 5 or 7 the lists are not displayed properly. The last column seems to be dropped or empty. In the attached image there should be 5 columns of radio buttons but the <ul class="last"> is empty so only 4 columns are displayed.

I've tested all shipped templates with the same results.

TagsNo tags attached.
Attached Files
radiosByColumn_1145x629.gif (27,797 bytes)   
radiosByColumn_1145x629.gif (27,797 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Relationships

related to 03894 closeduser372 horizontal scale wraps for 7 (or more?) items 

Activities

user372

2009-11-08 17:54

  ~10016

@ tpartner: can you fix this on your own?

tpartner

tpartner

2009-11-12 02:13

partner   ~10073

When displaying select/radios in columns and the number of answers doesn't divide nicely into the number of rows, empty columns are sometimes created, messing up the layout and confusing the user.

This is because there is a calculation "maxNumberOfRows = numberOfAnswers/numberOfColumns" (rounded up). This calculation then results in the MaxNumberOfRows being inserted into each column which will, in some cases, leave empty columns.

An example:
16 answers, 5 columns
maxNumberOfRows = 4
4 rows are inserted into each column
Last column is created but empty

My solution is to add another calculation to limit the numberOfColumns - "numberOfColumns = numberOfAnswers/maxNumberOfRows". (common.php checked in at revision 7878)

This will get rid of the extra columns but I'm not sure how to articulate it in the documentation wiki.

tpartner

tpartner

2009-12-03 14:22

partner   ~10419

Fixed at version 7878 and I've updated the documentation wiki.

Issue History

Date Modified Username Field Change
2009-11-08 02:12 tpartner New Issue
2009-11-08 02:12 tpartner Status new => assigned
2009-11-08 02:12 tpartner Assigned To => user372
2009-11-08 02:13 tpartner File Added: radiosByColumn_1145x629.gif
2009-11-08 17:54 user372 Note Added: 10016
2009-11-08 17:55 user372 Assigned To user372 => tpartner
2009-11-12 02:13 tpartner Note Added: 10073
2009-12-03 14:22 tpartner Note Added: 10419
2009-12-03 14:22 tpartner Status assigned => resolved
2009-12-03 14:22 tpartner Resolution open => fixed
2009-12-04 00:34 user372 Fixed in Version => 1.87RC5
2009-12-04 00:34 user372 Target Version => 1.87RC5
2009-12-04 00:35 user372 Relationship added related to 03894
2009-12-11 12:17 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking