View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04680Bug reportsOtherpublic2010-10-19 21:12
Reporterbrydon Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04680: Receiving text field in Ranking question fails to resize
Description

In a Ranking question, items in the left-hand column are transferred to the right-hand column ("Your ranking"). However, the right hand column does not resize to fit the width of the items.

Steps To Reproduce

See third question at: http://areaf.rdos.bc.ca/foo/index.php?sid=95218&lang=en

The "Neither agree nor disagree" item is truncated on the right when it is selected/ranked. This problem is more serious when the length of the items is longer or when they all start with the same few words (because they then look identical to the respondent).

Additional Information

See: http://www.limesurvey.org/en/support/forums/2-design-issues/49594-set-box-text-input-width-for-other?limit=10&start=10#50709

My fix is to add a line to qanda.php to resize the receiving text box based on the value of $maxselectlength:

if (isset($maxselectlength) && $maxselectlength > 60)
{
$ranklist = str_replace("<input class=\"text\"", "<input size='60' class='text'", $ranklist);
$answer .= "</tr>\n<tr>\n"
. "\t<td align='left' class='output'>\n"
. "\t<table border='0' cellspacing='1' cellpadding='0'>\n"
. "\t<tr><td></td><td><strong>".$clang->gT("Your Ranking").":</strong></td></tr>\n";
}
else
{
[b]$ranklist = str_replace("<input class=\"text\"", "<input size='" . $maxselectlength . "' class='text'", $ranklist);[/b]
$answer .= "\t<td style=\"text-align:left; white-space:nowrap;\" class=\"rank output\">\n"
. "\t<table border='0' cellspacing='1' cellpadding='0'>\n"
. "\t<tr><td></td><td><strong>".$clang->gT("Your Ranking").":</strong></td></tr>\n";
}

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)9160
I will donate to the project if issue is resolved
BrowserIE8 and Firefox 3.6.10
Database type & version143
Server OS (if known)Linux 2.6.18-194.11.3.el5.CV E_2010_3081
Webserver software & version (if known)Apache 2.2.16
PHP Version5.2.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-10-16 03:03

administrator   ~13212

Thank you. Fixed in rev. 9255

c_schmitz

c_schmitz

2010-10-19 21:12

administrator   ~13267

Released in 1.90 plus release.

Issue History

Date Modified Username Field Change
2010-10-15 18:32 brydon New Issue
2010-10-15 22:46 c_schmitz Assigned To => c_schmitz
2010-10-15 22:46 c_schmitz Status new => assigned
2010-10-16 03:03 c_schmitz Note Added: 13212
2010-10-16 03:03 c_schmitz Status assigned => resolved
2010-10-16 03:03 c_schmitz Fixed in Version => 1.90+
2010-10-16 03:03 c_schmitz Resolution open => fixed
2010-10-19 21:12 c_schmitz Note Added: 13267
2010-10-19 21:12 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey Taking => (No Category)