Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Cascade new windows on OS X - #10236

Merged
joshaber merged 12 commits into
masterfrom
cascade-windows
Jan 5, 2016
Merged

joshaber merged 12 commits into
masterfrom
cascade-windows

Conversation

@joshaber

Copy link
Copy Markdown
Contributor

Fixes #10057.

I don’t know if this is The Right Thing® on other platforms, so for now it’s OS X-only.

/cc @atom/feedback

@winstliu

Copy link
Copy Markdown
Contributor

Also a thing on Windows:
cascading-windows

No idea how many pixels that's offset though.

@joshaber

joshaber commented Jan 1, 2016

Copy link
Copy Markdown
Contributor Author

Awesome, thanks @50Wliu!

FWIW, I also changed the behavior to base the new window's dimensions on the last opened window. That seemed to more closely match the behavior on OS X, but I don't feel strongly either way.

@joshaber

joshaber commented Jan 1, 2016

Copy link
Copy Markdown
Contributor Author

FWIW, I also changed the behavior to base the new window's dimensions on the last opened window.

I changed my mind on this in the name of not fixing what ain't broke.

@mnquintana

Copy link
Copy Markdown
Contributor

Awesome! 😄 Should we add tests for this?

@joshaber

joshaber commented Jan 4, 2016

Copy link
Copy Markdown
Contributor Author

It doesn't look like we're testing atom-application currently. Mostly it's UI glue code.

@benogle

benogle commented Jan 4, 2016

Copy link
Copy Markdown
Contributor

Would it be worth writing a integration test for it? Not sure if this is in its purview.

@joshaber

joshaber commented Jan 4, 2016

Copy link
Copy Markdown
Contributor Author

Oh interesting! I'll give that a look.

@joshaber

joshaber commented Jan 5, 2016

Copy link
Copy Markdown
Contributor Author

Managed to pull together an integration test 🤘

joshaber added a commit that referenced this pull request Jan 5, 2016
@joshaber
joshaber merged commit 2c4f5c2 into master Jan 5, 2016
@joshaber
joshaber deleted the cascade-windows branch January 5, 2016 20:18
@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Managed to pull together an integration test 🤘

Nice!

@winstliu

winstliu commented Jan 8, 2016

Copy link
Copy Markdown
Contributor

After testing this out on Windows it looks like there needs to be some extra Windows-specific code: opening a new window that spawns from a maximized one should stay maximized and not cascade.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants