do you have a test file that I and others can work with to see the issue an try a few things ? Both my computers run on Windows 10.
No need for a demo, just create a script and try it. Drag the window around, etc.
So I gave it a try.
When the Layout calling the card is entirely visible on the screen, the card look pretty much centered on the parent Layout. If I move the parent Layout down to the right, then the card is only partially displayed, and that's an issue because the button that closes the card is outside the screen. The only way out is to kill the application .
I would first say that bringing the parent Layout where it's barely displayed serves no purpose, but customers can do weird things. Then is it a problem ? I would say yes. Does that prevent developers from using cards ? I would say no.
Applications need to be customers proof. In this case, my suggestion would be: before executing the New Window that will bring the card, check if the calling Layout is completely displayed. If not, then cancel the script and optionally display an error message to the user.
A valid idea to check conditions before proceeding.
This however diverges from the idea that FileMaker is easy to use when you have to do more work to make simple things work correctly.
If however you ignore the cards (whose own benefit is in dimming the parent layout) and use a dialog you can center it in the window and ignore these problems, complaints and looking foolish.
The new window dialog can be centered in the window easily and FileMaker failed by not providing something as simple as a checkbox to do this for us.
But, I was doing this 20 years ago in 4D so I know how to do it.