If the dimension is locked, the lock control appears next to it. Click the lock control to unlock the dimension so that you can change it.
The element moves to satisfy the new dimension requirement.