Dependency Graph View Issue Relation Graph Vertical
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
11726Feature requests[All Projects] Survey editingpublic2018-04-06 11:48
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityfeature 
Status closedResolutionfixed 
Product Version3.0 
Target VersionFixed in Version3.0 
Summary11726: Default column width and table header width
Description

We have 2 system for "sub question" width : columns and array : i think the default width for each question type must be the same.

Steps To Reproduce

In array : default is set to 20%
In multiple text (actual) : default is set to col-6 (50%)

I think the 2 must have same width, maybe best is :

col-3 / 33%

Additional Information

I think some array don't have same value of 20% : must control. But for example : array by column have 50% : must be the same than other array.

Tagsanswers_html

Activities

Mazi

Mazi

2016-10-04 09:56

partner   ~41066

I agree that the default width should be the same for these two types.

Besides using the "sub question width" attribute maybe we can simply improve the way the width of the first column is defined at array questions:
My idea is to always make the first column twice as large as each other column. So if there are two answer option (=columns), we will have:

  • SQ = 50%
  • A1 = 25%
  • A2 = 25%

For 6 answer options it would be

  • SQ = 25%
  • A1 to A6 = 12,5%

Formula:
Column width (answer items) = 100 / (A + 2)
^- "A" = number of answer items

Column width SQ = 2 * (column width of answer items)

DenisChenu

DenisChenu

2016-10-04 10:23

developer   ~41074

You mean "by default" right :).

It's not really the same :

  • my proposal is to set "All answer column width (or answer part for multiple text/multiple numeric)" to SAME width by default.
  • your propsal : by default : always set All answers columlns width DIFFERENT.
Mazi

Mazi

2016-10-04 10:37

partner   ~41077

Denis, just to clarify: The idea is that all answer items will use the same column width X while the sub question column always uses 2*X as column width, that's it.
The advantage is to have a better relation between the sub question text and the answer columns.

DenisChenu

DenisChenu

2016-10-04 11:04

developer   ~41081

I understand your point of view : the 2 idea seem good .....

DenisChenu

DenisChenu

2016-10-04 18:46

developer   ~41125

Last edited: 2016-10-11 15:39

View 3 revisions

To be more clear :
http://testing.sondages.pro/masterall/index.php/934895?newtest=Y&lang=fr

The second group have 33% and col-4 (in actual 2.50 default).

The input:text is bigger than before ...

http://testing.sondages.pro/answershtml/alternate/awesome/934895?newtest=Y&lang=fr

Mazi solution (on 1st group)

jelo

jelo

2016-10-11 18:20

partner   ~41235

The alignment of the answertext is different in arrays and multitext.
If both questiontypes are on one page this is catching the eye.

Attached a screenshot with an example of a different surveypackage.



positionanswerfield.png (208,985 bytes)
DenisChenu

DenisChenu

2016-10-11 19:22

developer   ~41237

Last edited: 2016-10-11 19:23

View 2 revisions

@jelo_ls : if you prefer WITHDEFAULT part on http://testing.sondages.pro/answershtml/alternate/awesome/934895?newtest=Y&lang=fr : same width for 1st part : vote up. If you prefer Mazi solution or leave it with 20% and 40% and 50% vote down.

This bug report is not for alignement (and thik it's a LS default template issue, not answershtml issue)

For alignement : make another bug report please.

jelo

jelo

2016-10-11 22:18

partner   ~41239

WITHDEFAULT
ARRAY 33%

Related Changesets

LimeSurvey: answers_html e34e2dfe

2016-11-01 00:57:23

DenisChenu

Details Diff
New feature #Default column width and table to same width
Dev: some must be reviewed (with answertextright etc ....)
Dev: use fa in place of glyphicon in date => todo : move to date.css ?
Dev: remove some inlined js + some other little fix when i view it
Affected Issues
11726
mod - application/core/packages/limesurvey/survey.css Diff File
mod - application/helpers/qanda_helper.php Diff File
mod - application/helpers/questionHelper.php Diff File
mod - application/views/admin/survey/Question/advanced_settings_view.php Diff File
mod - application/views/survey/questions/list_with_comment/list/answer.php Diff File
mod - application/views/survey/questions/multiplechoice_with_comments/rows/answer_row.php Diff File
mod - application/views/survey/questions/multiplechoice_with_comments/rows/answer_row_other.php Diff File
mod - application/views/survey/questions/shortfreetext/text/item.php Diff File
mod - application/views/survey/questions/shortfreetext/textarea/item.php Diff File
mod - scripts/expressions/em_javascript.js Diff File
mod - scripts/multiplechoice_withcomments.js Diff File
mod - templates/lumen/css/template-core.css Diff File

Issue History

Date Modified Username Field Change
2016-09-29 09:29 DenisChenu New Issue
2016-09-29 09:30 DenisChenu Tag Attached: answers_html
2016-09-29 09:30 DenisChenu Relationship added related to 11725
2016-09-29 09:30 DenisChenu Relationship added related to 11697
2016-09-30 18:55 DenisChenu Project Development => Feature requests
2016-09-30 18:56 DenisChenu Severity @50@ => feature
2016-09-30 18:56 DenisChenu Product Version 2.5x =>
2016-09-30 18:56 DenisChenu Target Version 3.x =>
2016-10-04 09:56 Mazi Note Added: 41066
2016-10-04 10:23 DenisChenu Note Added: 41074
2016-10-04 10:37 Mazi Note Added: 41077
2016-10-04 11:04 DenisChenu Note Added: 41081
2016-10-04 18:46 DenisChenu Note Added: 41125
2016-10-11 15:01 DenisChenu Note Edited: 41125 View Revisions
2016-10-11 15:39 DenisChenu Note Edited: 41125 View Revisions
2016-10-11 18:20 jelo File Added: positionanswerfield.png
2016-10-11 18:20 jelo Note Added: 41235
2016-10-11 19:22 DenisChenu Note Added: 41237
2016-10-11 19:23 DenisChenu Note Edited: 41237 View Revisions
2016-10-11 22:18 jelo Note Added: 41239
2016-10-14 11:04 DenisChenu Product Version => 3.0
2016-10-31 22:02 DenisChenu Assigned To => DenisChenu
2016-10-31 22:02 DenisChenu Status new => assigned
2016-11-01 01:01 DenisChenu Changeset attached => LimeSurvey answers_html e34e2dfe
2016-11-01 01:03 DenisChenu Status assigned => resolved
2016-11-01 01:03 DenisChenu Resolution open => fixed
2016-11-01 01:03 DenisChenu Fixed in Version => 3.0
2016-11-04 01:23 DenisChenu Relationship added parent of 11864
2018-04-06 11:48 markusfluer Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing