Skip to content

Commit

Permalink
regression fix listbuilder controls aren't sized as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Dec 1, 2018
1 parent 0ac864c commit 52fce1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -54,7 +54,7 @@ function controlToHTML($name, $label, $process = null) {
$this->process = $process;

if (!$this->newList) {
$html = "<select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple'>";
$html = "<select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple' size='$this->size'>";
$list = $this->default + $this->source;
foreach ($list as $key=>$value) {
$html .= "<option value='$key'";
Expand Down
Expand Up @@ -53,7 +53,7 @@ function controlToHTML($name, $label, $process = null) {
$this->process = $process;

if (!$this->newList) {
$html = "<select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple'>";
$html = "<select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple' size='$this->size'>";
$list = $this->default + $this->source;
foreach ($list as $key=>$value) {
$html .= "<option value='$key'";
Expand Down
Expand Up @@ -54,7 +54,7 @@ function controlToHTML($name, $label, $process = null) {
$this->process = $process;

if (!$this->newList) {
$html = "<div class=\"".(bs3()?"help-block":"control-desc")."\"></div><select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple'>";
$html = "<div class=\"".(bs3()?"help-block":"control-desc")."\"></div><select name='".$name."[]' id='$name' class=\"form-control\" multiple='multiple' size='$this->size'>";
$list = $this->default + $this->source;
foreach ($list as $key=>$value) {
$html .= "<option value='$key'";
Expand Down

0 comments on commit 52fce1a

Please sign in to comment.