# Wizard position

**URL:** <https://discuss.tryton.org/t/wizard-position/6169>\
**Category:** Developer\
**Created:** [May 23, 2023, 10:41am UTC](https://discuss.tryton.org/t/wizard-position/6169 "2023-05-23T10:41:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibaut](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Thibaut](https://discuss.tryton.org/u/Thibaut)\
**Post date:** [May 23, 2023, 10:41am UTC](https://discuss.tryton.org/t/wizard-position/6169/1 "2023-05-23T10:41:18Z")

</div>

Hi,

I have a button in a view that launches a wizard but unfortunately it doesn’t pop-up in the center of the screen.  
We need to move manually the wizard window in order to see the buttons. This wizard only contains a O2M and buttons.  
On the server side I tried:

- to rezise the height of the O2M to shorten the size of the window but it didn’t work.
- to apply xexpand=“0” or xfill=“0” to the field O2M, didn’t work.

I am able to build a client, so on the client side I tried:

- for the class WizardDialog, to set\_position to WIN\_POS\_CENTER, didn’t work.

Have you faced a problem like this before ? Or would you have any ideas how to move the window properly ?  
Thank you.

Thibaut

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [May 23, 2023, 1:43pm UTC](https://discuss.tryton.org/t/wizard-position/6169/2 "2023-05-23T13:43:28Z")

</div>

Which version? Because I think this was improved in recent versions.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Thibaut](https://discuss.tryton.org/u/Thibaut)\
**Post date:** [May 24, 2023, 12:54pm UTC](https://discuss.tryton.org/t/wizard-position/6169/3 "2023-05-24T12:54:59Z")

</div>

Sorry forgot to mention it. I’m working on the version 5.0.  
I checked the latest development on your Github,nothing much changed for this class WizardDialog.

By the way, I think I found out what was my problem. After the click on the button that launches the wizard, there is a raise\_user\_warning that is shown in between (so before the wizard window is shown).  
That seems to cause the problem.
