Made handling of borderlayout more flexible. Will automatically
calculate contraints of row items