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

Center window on multiple screens always puts the window on the first screen. #2

Closed
philipp-eisen opened this issue Apr 23, 2018 · 2 comments
Labels

Comments

@philipp-eisen
Copy link

philipp-eisen commented Apr 23, 2018

to fix change in helpers/center_window.js

line 11 and 12 from

    x: ( sFrame.width / 2 ) - ( wFrame.width / 2 ),
    y: ( sFrame.height / 2 ) - ( wFrame.height / 2 ),

to

    x: sFrame.x + ( sFrame.width / 2 ) - ( wFrame.width / 2 ),
    y: sFrame.y + ( sFrame.height / 2 ) - ( wFrame.height / 2 ),

With that fix though I have found still one issue - if the main screen is not centered relative to the peripheral screen, it is not exactly centered, but offset slightly. - But that's probably not an issue of the config, but rather phoenix itself.

@fabiospampinato
Copy link
Owner

Thanks for opening the issue.

Can you check if the other shortcuts provided by this configuration work in a multi-monitor setup?

@fabiospampinato
Copy link
Owner

I've improved multi-monitor support. Although I've found many other issues with it, I think those may happen if the monitors are arranged weirdly or if they don't all have the same resolution.

Closing this in favor of #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants