Hello!
I have a popup dialog that contains a partial page.
When running the application, the funtionality works correctly where the popup dialog will show and then the partial page will display. However, the popup window is never centered unless I use my mouse to scroll, which will then push the popup window to the center.
Is there any way to automatically do that so that the mouse doesn't have to be used to center the popup dialog?
I have a popup dialog that contains a partial page.
When running the application, the funtionality works correctly where the popup dialog will show and then the partial page will display. However, the popup window is never centered unless I use my mouse to scroll, which will then push the popup window to the center.
Is there any way to automatically do that so that the mouse doesn't have to be used to center the popup dialog?
RE: Popup dialog not being centered
That does sound strange, and is not something I+?+?+?ve seen before.
Can you confirm the WebMaker version you are using, and that this is the +?+?++Popup Dialog+?+?+? control from the palette?
Also which web browser are you seeing this behaviour in? Are you able to try any different browsers? Do they have the same problem?
Are you able to provide an export of your project that I can test here?
Regards,
Gerard
RE: Popup dialog not being centered
I'm using Firefox.
I set the width of the popup dialog to a set number, and left the length to be fit to the content.
Then, in the partial page, I have the length of the partial page content (the layout group) to a set number.
I apologize, but I cannot export the project.
RE: Popup dialog not being centered
Thanks for the additional information.
From this I am assuming that you are referring to the vertical alignment of the dialog on the page, not the horizontal position.
The dialog is initially positioned when it doesn+?+?+?t have much height (due to the partial page not yet having loaded in). When the content is then loaded in this makes the dialog much taller, so its initial position is incorrect.
Is this the issue you are having?
If so, then the best option to fix this is to get the dialog to reposition itself once the content has been inserted. You should be able to do this by adding an onload event to the partial page to run a custom script fragment like:
dijit.byId('popup_dialog_container_group').layout();
If you have renamed the dialog group in the main page then you will need to adjust this accordingly.
I hope this helps.
Regards,
Gerard