anchorlayout: fix positioning and remove size change when the children is bigger than the layout itself. Closes #2483