View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16078Bug reports_ Unknownpublic2020-12-23 18:48
Reportersebastianhuter Assigned Tocdorin  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version4.1.15 
Summary16078: subqestion_width does not divide colum width
Description

Setting the subquestion_width for a Matrix question with multiple colums does not work, because the remaining percent of table width does not get divided equally between the colums. This is the result as taken from the HTML source code:
<!-- Array -->
<!-- answer -->
<table class="ls-answers subquestion-list questions-list radio-array table table-bordered table-hover table-array-radio" role="group" aria-labelledby="ls-question-text-842649X14X139">
<colgroup class="col-responses">
<col class="col-answers" style="width: 65%;">
<col class="ls-col-odd" style="width: 35%">
<col class="ls-col-even" style="width: 35%">
<col class="ls-col-odd" style="width: 35%">
<col class="ls-col-even" style="width: 35%">
<col class="ls-col-odd" style="width: 35%">
<col class="col-no-answer ls-col-even" style="width: 35%"></colgroup>
The error does occur both in vanilla and fruity theme, so it does not seem to be theme-dependant.

Additional Information

This happend in a freshly set up LS 4.1.14 upgraded to 4.1.15, the survey was exportet from an LS 3.2.22 and importet in 4.1.14. There were no problems in LS 3.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)4.1.15+200402
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMYSQL 10.1.44
Server OS (if known)Ubuntu 18.04.4 LTS‬
Webserver software & version (if known)
PHP VersionPHP 7.2.24-0ubuntu0.18.04.3 (cli) (built: Feb 11 2020 15:55:52)

Relationships

duplicate of 16674 closedLimeBot Array Type:F: Column width falsely calculated 

Users monitoring this issue

There are no users monitoring this issue.

Activities

murrayl

murrayl

2020-05-08 12:29

reporter   ~57629

/application/core/QuestionTypes/ArrayFlexibleRow/RenderArrayFlexibleRow.php

line 93
$this->cellwidth = round(($this->columnswidth / $this->getQuestionCount()), 1);

$this->getQuestionCount() is this the wrong denominator?

should it be a count from $this->aAnswerOptions somehow?

I'd rate this as above minor as at the moment it's causing me to have to do some css fixes on a question by question basis and so makes this question type a real pain...

cdorin

cdorin

2020-10-19 18:43

reporter   ~60273

Sorry for skipping this one. It will be fixed by next week. Fix is here: https://github.com/LimeSurvey/LimeSurvey/pull/1597

Issue History

Date Modified Username Field Change
2020-04-02 17:17 sebastianhuter New Issue
2020-05-08 12:29 murrayl Note Added: 57629
2020-10-19 18:43 cdorin Note Added: 60273
2020-10-19 18:44 cdorin Relationship added duplicate of 16674
2020-12-23 18:48 cdorin Assigned To => cdorin
2020-12-23 18:48 cdorin Status new => closed
2020-12-23 18:48 cdorin Resolution open => fixed