Refactors isResizingWithContent to resizesToFitContent.