Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows don't open on Mac if size has not been set #1543

Closed
tirix opened this issue Jan 21, 2021 · 1 comment
Closed

Windows don't open on Mac if size has not been set #1543

tirix opened this issue Jan 21, 2021 · 1 comment

Comments

@tirix
Copy link
Contributor

tirix commented Jan 21, 2021

If an application does not call explicitly the window_size method of WindowDesc, the window does not appear on Mac.
This is the case for some of the examples (anim, custom_widget). Others which actually call that method (like calc) don't have the issue.

@tirix
Copy link
Contributor Author

tirix commented Jan 21, 2021

It seems the issue is with line 166 of druid-shell's window.rs for mac.
The PR #1532 changed that line to set a default windows size to (0,0). If I manually set it back to (500, 400), the issue disappears. However, when I run a dropdown example (still on mac), the drop-down sub-windows briefly appears with a bigger size (most probably 500x400) when opened.
I believe that artefact is less an issue than the fact that some examples seemingly don't work at all. I'd suggest reverting that line and opening a new issue to track the very brief artefact. Ultimately the issue will probably be with finding out the size of the sub-window at the time they are opened.

rjwittams added a commit to rjwittams/druid that referenced this issue Jan 22, 2021
rjwittams added a commit that referenced this issue Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants