Hooks for resizing UI elements.