-
Notifications
You must be signed in to change notification settings - Fork 149
fix: Add proper constraints for macOS dev loading view #2707
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
fix: Add proper constraints for macOS dev loading view #2707
Conversation
…g view - Add contentView initialization and container constraints for macOS - Fix layout issues with the dev loading view on macOS platform - Ensure proper positioning and sizing of the loading message window Fixes microsoft#2706
|
@microsoft-github-policy-service agree [company="{didi}"] |
|
@microsoft-github-policy-service agree company="Microsoft" |
|
@microsoft-github-policy-service agree |
- Replace contentViewController.view with contentView for proper view hierarchy - Unify constraint logic across iOS and macOS platforms - Use shared constraint array for better code organization - Fix container constraints to properly fill parent view on macOS - Maintain platform-specific label positioning (bottom on iOS, center on macOS) Fixes issue microsoft#2706
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment about ifdefs
- Fix macOS contentView usage by using contentViewController.view instead of contentView - Simplify constraint setup by separating iOS and macOS specific logic - Remove shared constraint array approach for better code clarity - Ensure proper initialization of contentView for macOS platform This addresses the layout issues in issue microsoft#2706 with a cleaner implementation.
- Remove duplicate contentView initialization in macOS code path - Fix file ending newline formatting - Simplify the constraint setup by removing unnecessary contentView creation - The contentView is already properly initialized by the NSWindow This further refines the fix for issue microsoft#2706 with cleaner code.
|
@Saadnajmi Thanks for the approval. GitHub still shows “Merging is blocked: A conversation must be resolved before this pull request can be merged.” |
I plan to merge and backport to 0.79 on Monday, thanks for the fix! |



Fixes #2706
Summary:
Test Plan: