make `_resizeEnabled` private and use its API