lib/core/view_container.rb
# Split in two the vassal with a given index.
Split in two the vassal with a given index.
Split in two the vassal with a given index .
def split(vassal_index)
    new_view = copy_vassal_view(@vassals[vassal_index])
    @vassals.insert(vassal_index + 1, new_view)
    @vassals.each_with_index{|view, i| view.index = i}
    vassal_sizes()
    return self
  end
def split ( vassal_index ) new_view = copy_vassal_view ( @vassals [ vassal_index ] ) @vassals . insert ( vassal_index + 1 , new_view ) @vassals . each_with_index { | view , i | view . index = i } vassal_sizes ( ) return self end
Split in two the vassal with a given index.
Split in two the vassal with a given index .
# Each view/container know it own position under a container.
vassal_index