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.

New Window / "Resize to Fit" failing

Featured Replies

I have a several similar scripts for opening pop-up windows to display charts and reports. I'm using a New Window step at the beginning to set the location of the new window on the screen, but leaving the dimensions blank, going to the desired layout, hiding the toolbar, and then Adjust Window: Resize to Fit step at the end.

This is working fine for a layout where there is only a Body part, but for the ones where I have rand summaries or sub-summaries, I'm getting windows that ignore both window control steps: the window appears at the very top edge of the screen, and stretches the full height of the screen.

Im attaching a picture of my script -- and of one of the layouts where it's not working. (The script trigger on the layout is just a Sort. Where am I going wrong here?

post-91156-0-67875500-1342021487_thumb.j

post-91156-0-24101600-1342021495_thumb.j

Sometimes (like for popup list views) it is helpful to use a layout that is a "sizer". Go to that layout, resize to fit, then go to the final layout (no resize).

  • Author

I'm not sure I understand why that would help . . . doesn't that just shove my problem over to another layout? If I want a fixed-size window I thought I could just specify the dimensions in the 'New Window' specs,yes? But in my script that step isn't even working . . .

No, it doesn't "shove your problem over." In fact, it allows for consistent popup window sizes. I just design a blank form layout with a rectangle in the lower right-hand corner and resize to fit.

  • Author

I see now -- in order to get the windows a consistent size. But that's not my need here -- the various windows that pop up for different charts can be different sizes. I'm trying to understand why 'Resize to Fit' isn't working in this situation (I just used the script debugger and it's just this step that's not behaving as expected.

Is there something about sub-summary layouts that makes the ResizeToFit deliver a maximally-tall window even if 2/3 of it is blank?

I believe so, yes, so that's why I use the popup sizer technique.

  • Author

ok, thanks.

The issue is with list view layouts: the resize to fit command makes then fill the whole vertical window space.

  • Author

THanks for the clarification, Vaughn. Very helpful! Now the needs for the 'Sizer' approach is pretty clear -- thanks for that bcooney!

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.