A few adjustments to the resizing functionality.