Skip 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.

WindowWidth at Startup

Featured Replies

I've been using this calculation, where I know that I want the WindowWidth to be 1000 pixels wide.

(Get ( WindowDesktopWidth ) / 2) - (Get ( WindowWidth ) / 2)

This calculation can't seem to set the left position correctly when called as the script performed on open, as the WindowWidth hasn't been set until within this script step.

It does work, if the script is manually activated, once the screen has been correctly sized but incorrectly positioned from start up.

For now, I know that we want the window width to be 1000 and / 2 of this is 500

Therefore

(Get ( WindowDesktopWidth ) / 2) - 500

works on start up . . .

To test this, open the attached file, drag the open window to the right (like a user may do) so you can't see the right half of the window, close the file then open it again. Then run the first script (which is called on opening the file) and it works.

Then repeat the process, only this time setting the second script as the open script, which has the left position hard coded, and it works every time.

WindowDesktopWidth.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.