Center the window when failing to assign a larger window frame
When I am using the fullscreen layout and open System Preferences, it is put at the top-right corner of my screen. It doesn't seem good especially on a large screen.
I justed looked into a little and found this method: https://github.com/ianyh/Amethyst/blob/development/Amethyst/ReflowOperation.swift#L67-L97
What I am considering is that, when it fails to assign the window a larger frame(when the max frame of the window is smaller than what we want), we center that window within the expected frame(fullscreen frame in this example). So that System Preferences would appear in the center of screen in fullscreen layout.
I think it should be a good enhancement. Or did I overlook any issues it would cause?
That actually seems like a pretty good idea to me.
FWIW, I'd love this too. I'd prefer that the placement was horizontally centered on the current screen, and ~ 10 percent down from the top by default, rather than centered vertically. That puts it much more in the core "attention" zone, IMO.
The link to the method in the issue description appears to have rotted
The more interesting thing is what to do when the window extends beyond its layout frame.