Skip to content

Commit

Permalink
Fixed issue #18782: Bad width set for Array dual scale (#3078)
Browse files Browse the repository at this point in the history
Dev: usage of $this->defaultWidth
  • Loading branch information
Shnoulle committed Apr 27, 2023
1 parent 8d2083d commit ee21b3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct($aFieldArray, $bRenderDirect = false)
$this->defaultWidth = false;
} else {
$this->answerwidth = 33;
$this->defaultWidth = false;
$this->defaultWidth = true;
}
}

Expand Down Expand Up @@ -135,7 +135,7 @@ public function getPositioningAndSizing(&$aData)
}
if ($numColExtraAnswer > 0) {
$extraanswerwidth = $this->answerwidth / $numColExtraAnswer; /* If there are 2 separator : set to 1/2 else to same */
if ($defaultWidth) {
if ($this->defaultWidth) {
$columnswidth -= $this->answerwidth;
} else {
$this->answerwidth = $this->answerwidth / 2;
Expand Down

0 comments on commit ee21b3d

Please sign in to comment.