diff options
-rw-r--r-- | modules/taxonomy.module | 3 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index b74480624..43bdb1c73 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -513,8 +513,7 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti $select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($key == $value ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>"; } - // min 8, possibly options/3 (set max too?) - $size = max(8, round(count($options)) / 3); + $size = min(12, count($options)); return form_item($title, "<select name=\"edit[$name][]\"". ($multiple ? " multiple size=\"$size\"" : "") . ($extra ? " $extra" : "") .">$select</select>", $description); } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index b74480624..43bdb1c73 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -513,8 +513,7 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti $select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($key == $value ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>"; } - // min 8, possibly options/3 (set max too?) - $size = max(8, round(count($options)) / 3); + $size = min(12, count($options)); return form_item($title, "<select name=\"edit[$name][]\"". ($multiple ? " multiple size=\"$size\"" : "") . ($extra ? " $extra" : "") .">$select</select>", $description); } |