Adjusting auto-resize