Jump to content
Sign in to follow this  
James Grater

Window Adjustment

Recommended Posts

I have an issue where I cannot set the size of two Windows to what I want. When I adjust the second window then the first changes size. I have tried scripts steps Adjust Window and Resize Window and both affect the two windows and not just the selected window. Surely I have not found a bug !

Share this post


Link to post
Share on other sites

If you are on Vista as your profile indicates, you've encountered the dreaded Windows behavior. A window that is maximized will resize to its last adjusted size if another window is opened in front of it. The solution is to not use Maximize Window, but rather Adjust Resize to Fit.

Share this post


Link to post
Share on other sites

My tester manually maximized the window. I am running scripts in the background (hidden window), and then the window resizes. Tested on my Windows 7, not sure what the tester is using, but the result is the same.

What's an elegant way to solve this?

Share this post


Link to post
Share on other sites

So, her's what I ended up doing, but it's not the most elegant:

Two scripts that are appended to every script that opens windows in the background:

1. Store the window measurements (top, left, width and height)

2. Restore the window the previous measurements.

The widow jumps, though, before resizing back to the original.

Better than not resizing, though.

If anyone has a better idea, please let me know.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

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