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

Setting a window frame to a different screen results in incorrect height #349

Closed
metakirby5 opened this issue Jun 3, 2024 · 1 comment
Closed

Comments

@metakirby5
Copy link
Contributor

  • Version: 4.0.0
  • macOS: Sonoma 14.5

Likely related to #348, since:

Example (in Coffeescript, but the syntax is similar enough to Javascript):

currentWindow = Window.focused()
sf = currentWindow.screen().frame()
wf = currentWindow.frame()
wf.x = 0
wf.y = 0
wf.height = sf.height
Phoenix.log("Before screen height: #{currentWindow.screen().frame().height}")
Phoenix.log(currentWindow.setFrame(wf))
Phoenix.log("After screen height: #{currentWindow.screen().frame().height}")
Phoenix.log("#{wf.height} -> #{currentWindow.frame().height}")

Logs:

default	21:35:15.212393+0900	Phoenix	Before screen height: 1117
default	21:35:15.390630+0900	Phoenix	false
default	21:35:15.402436+0900	Phoenix	After screen height: 1440
default	21:35:15.404335+0900	Phoenix	1117 -> 1092
@metakirby5
Copy link
Contributor Author

Confirmed the issue is fixed with #350.

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

No branches or pull requests

2 participants