Set position when adding a pane