Update the preferred size after relayoutting