Skip to content

Commit

Permalink
Fixed issue #18958: Multiple numerical input text input box width not…
Browse files Browse the repository at this point in the history
… having an effect (#3297)
  • Loading branch information
adamzammit committed Aug 9, 2023
1 parent dc989a5 commit 1ca89f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/models/QuestionBaseRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ public function getLabelInputWidth()
$labelAttributeWidth = trim((string) $this->getQuestionAttribute('label_input_columns'));
$inputAttributeWidth = trim((string) $this->getQuestionAttribute('text_input_columns'));

if ($inputAttributeWidth === "") {
$inputAttributeWidth = trim((string) $this->getQuestionAttribute('text_input_width'));
}

$attributeInputContainerWidth = intval($inputAttributeWidth);
if ($attributeInputContainerWidth < 1 || $attributeInputContainerWidth > 12) {
$attributeInputContainerWidth = null;
Expand Down

0 comments on commit 1ca89f6

Please sign in to comment.