Initialize the position property of a pane when adding it