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

[MacCatalyst] Initial X, Y, Width and Height window values are not applied in CreateWindow override #27304

Open
anandhan-rajagopal opened this issue Jan 23, 2025 · 2 comments
Labels
platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@anandhan-rajagopal
Copy link
Contributor

Description

When overriding the CreateWindow method in App.xaml.cs to set initial window position and size on MacCatalyst, the X, Y, Width and Height values are not being applied correctly. but the window position remains at the default location instead of the specified X, Y, Width and Height.

Screen.Recording.2025-01-23.at.7.11.11.PM.mov

Steps to Reproduce

  1. Run the attached sample.

WindowPositioning.zip

  1. The window is not opened in specified location and size on Catalyst.

Link to public reproduction project repository

No response

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@MartyIX
Copy link
Contributor

MartyIX commented Jan 23, 2025

Please see: #27279 (comment)

@samhouts samhouts added the platform/macOS 🍏 macOS / Mac Catalyst label Jan 24, 2025
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jan 24, 2025
@Zhanglirong-Winnie
Copy link

Zhanglirong-Winnie commented Jan 24, 2025

This issue has been verified Visual Studio Code 1.96.4(9.0.30 & 9.0.21). Can repro this issue on macOS platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants