Commit f55ce7e0 by Qiang Xue

Merge pull request #2010 from creocoder/basehtml-listbox-size

BaseHtml::listBox() default size settings removed
parents eade9dd1 f645368e
...@@ -718,7 +718,7 @@ class BaseHtml ...@@ -718,7 +718,7 @@ class BaseHtml
*/ */
public static function listBox($name, $selection = null, $items = [], $options = []) public static function listBox($name, $selection = null, $items = [], $options = [])
{ {
if (!isset($options['size'])) { if (!array_key_exists($options, 'size')) {
$options['size'] = 4; $options['size'] = 4;
} }
if (!empty($options['multiple']) && substr($name, -2) !== '[]') { if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment