Jump to content

Trouble controlling window position


This topic is 2231 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am trying to position a new card window on the right edge of the window that it is being opened from. My calc for the FromLeft card setting is (Get (WindowLeft) + Get(WindowWidth). This only works (no gap between windows) when the originating window is all the way to the left of the screen. The more the originating window gets from the left of the screen the larger the gap between the two windows. I have also tried hardcoding the second value Get(WindowLeft) + 80 and it produces the same results.

Not sure why this is not working.

furtherright.jpg

left.jpg

Link to comment
Share on other sites

Try setting $width $left and $top as variables at the top of the script before you open the card then in the card use $left + $width

by the time the card is open your getting the values from the card itself not the parent window.

Link to comment
Share on other sites

This topic is 2231 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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