More optimal layoutIfNeeded.