Index: includes/project_edit_issues.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/includes/project_edit_issues.inc,v retrieving revision 1.2 diff -u -p -r1.2 project_edit_issues.inc --- includes/project_edit_issues.inc 5 May 2009 19:15:58 -0000 1.2 +++ includes/project_edit_issues.inc 20 Aug 2009 17:40:02 -0000 @@ -87,6 +87,8 @@ function project_issue_project_edit_form $weight = 0; $default_component_options[0] = t(' (user must select)'); $form['component']['#tree'] = TRUE; + $number_components = count($node->project_issue['components']); + $delta = max(20, $number_components + 10); foreach ($node->project_issue['components'] as $component) { $default_component_options[$component] = $component; $form['component'][$component]['name'] = array( @@ -97,7 +99,7 @@ function project_issue_project_edit_form $form['component'][$component]['weight'] = array( '#type' => 'weight', '#default_value' => $weight, - '#delta' => 15, + '#delta' => $delta, '#attributes' => array('class' => 'project-issue-component-weight'), ); // For the delete links, we just need the offset of the component as @@ -119,7 +121,7 @@ function project_issue_project_edit_form $form['component_add']['weight'] = array( '#type' => 'weight', '#default_value' => $weight, - '#delta' => 15, + '#delta' => $delta, '#attributes' => array('class' => 'project-issue-component-weight'), ); $form['default_component'] = array(