An appropriate position of the barline is automatically determined.
If you still want to move the barline, apply a placeholder. Select the command Format - Notes/Rests - General - Placeholder. A detailed description can be found in Help menu, keyword Placeholder.