Skip to content

Error dialog on startup and app window position #1433

Answered by samschott
dlek asked this question in Q&A
Discussion options

You must be logged in to vote

I can definitely answer the second question and I'm afraid this is not currently possible. As you have discovered, the Window.position property currently does not do anything. PR #1395 will at least change this for macOS when it lands. There is also currently no toga API to query the desktop geometry or to directly center a window, you'll need to fall back to native APIs of each platform at the moment.

Regarding the first question, the behaviour here may depend on the platform implementation and at which point during the startup the app gains focus and is ordered to the front. Which platform are you trying this on?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dlek
Comment options

@dlek
Comment options

@samschott
Comment options

@dlek
Comment options

Answer selected by dlek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants