anchor.diff:        currentEl.attr('max', maxEl.val());
         minEl.attr('max', maxEl.val());
         maxEl.attr('min', Math.max(minEl.val(), maxEl.attr('min')));
  +      currentEl.val(Math.min(maxEl.val(), Math.max(minEl.val(), currentEl.val())));
       }
     }
  +  scale_adjust_min_max('<%= dom_id %>');
   </script>
  
positive.code: <table class="table scale">
    <thead>
      <tr>
        <th>Component</th>
  
negative.code:               <%= dor_f.fields_for :relationAttributes, dor.relationAttributes do |dor_attr_f| %>
                  <td class="controls"><%= dor_attr_f.number_field :pct_dpmt, :min => 1, :max => 100, :class => 'span1' %></td>
                  <td class="controls"><%= dor_attr_f.number_field :current, :min => dor.relationAttributes.min, :max => dor.relationAttributes.max, :class => 'span1 scale-current' %></td>
                  <td class="controls"><%= dor_attr_f.number_field :min, :min => 1, :max => dor.relationAttributes.max, :class => 'span1 scale-min', :onchange => "scale_adjust_min_max('#{dom_id}')" %></td>
                  <td class="controls"><%= dor_attr_f.number_field :max, :min => dor.relationAttributes.min, :class => 'span1 scale-max', :onchange => "scale_adjust_min_max('#{dom_id}')" %></td>
                  <td class="controls"><%= dor_attr_f.number_field :step_up, :min => 1, :max => dor.relationAttributes.max.to_i - dor.relationAttributes.min.to_i > 1 ? dor.relationAttributes.max.to_i - dor.relationAttributes.min.to_i : 1, :class => 'span1' %></td>
                  <td class="controls"><%= dor_attr_f.number_field :step_down, :min => 1, :max => dor.relationAttributes.max.to_i - dor.relationAttributes.min.to_i > 1 ? dor.relationAttributes.max.to_i - dor.relationAttributes.min.to_i : 1, :class => 'span1' %></td>
  
  