Avoid unnecessary relayout.