grid_align() function
Place the grid track according to align methods. It keeps the track sizes but sets their position. It can process both columns or rows according to the passed parameters.
Arguments
cont_size
size of the containers content area (width/height)
auto_size
true: the container has auto size in the current direction
track_num
number of tracks
size_array
array with the track sizes
pos_array
write the positions of the tracks here
Return value
the total size of the grid