Retrieve initial dimensions at layout time.