Distributing elements

From TaskDepender
Jump to: navigation, search
(Design)
(Design)
Line 21: Line 21:
 
This gives the total space to occupy. Next the total space occupied by the elements must be calculated. This is done by determining the sum of the widths of all the selected elements:
 
This gives the total space to occupy. Next the total space occupied by the elements must be calculated. This is done by determining the sum of the widths of all the selected elements:
  
<math>W  = \displaystyle\sum_{i=1}^N w_i)</math>
+
<math>W  = \displaystyle\sum_{i=1}^N w_i</math>
  
 
This is illustrated in the figure below:
 
This is illustrated in the figure below:
Line 37: Line 37:
 
with:
 
with:
  
<math>S  = (x_{max}-x_{min}-\displaystyle\sum_{i=1}^N w_i)/(N-1)</math>
+
<math>S  = (x_{max}-x_{min}-W/(N-1)</math>
  
  

Revision as of 18:31, 11 November 2011