Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom Dialog not centered

Featured Replies

We've been living with this for a few months now, but it's just starting to bug me (it makes things like unprofessional).

When using "Show Custom Dialog" the dialog pops up towards the right top of the window (not the screen). I have a custom function that centers the window and I think ever since I did that the system dialogs are way off.

They always appear at the same position, pretty much at the top right corner. All my "pop ups" that are created appear right in the center of the window.

How is the position of the Custom Dialogs determined and can I "reset" it? Or am I going to have to change something I've scripted to do with the window position?

Thanks all.

Hi ckai,

Edit > Preferences > General tab > Reset dialog sizes and positions

I do not believe that it can be scripted to reset. I usually create windows for custom dialog or use plug-in such as Troi.

The position of the custom dialogs are under the control of the end user, not the developer.

The position and size of custom dialogs (in FM 10, at least) are saved from the previous position. If you manually move the custom dialog, the next time it is opened, it will open in the new position. The position and size are stored globally. All custom dialogs in the solution will be the same position and size.

  • Author

Hi ckai,

Edit > Preferences > General tab > Reset dialog sizes and positions

I do not believe that it can be scripted to reset. I usually create windows for custom dialog or use plug-in such as Troi.

Awesome, this is good to know. Worked a treat. I have no idea how they ended up over there but at least I know how to sort it quickly thanks. I do use a dialog plugin for some but I find the standard script step is enough for me in most cases.

The position of the custom dialogs are under the control of the end user, not the developer.

Yeah, I did think this was the case.

The position and size of custom dialogs (in FM 10, at least) are saved from the previous position. If you manually move the custom dialog, the next time it is opened, it will open in the new position. The position and size are stored globally. All custom dialogs in the solution will be the same position and size.

Now this is good to know as well. After resetting them (as above) they weren't in exactly the position I'd like. Moved, and now spot on. I'd say during me doing some playing around I've moved a dialog box and it's obviously stayed there because of this feature.

Thanks everyone. Another crisis (and more excessive drinking) averted thanks to FM Forums :laugh2:

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.