Skip to content

Conversation

@zhongjiahao-M
Copy link

  • 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 #2706

Summary:

Test Plan:

…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
@zhongjiahao-M zhongjiahao-M requested a review from a team as a code owner September 27, 2025 17:03
@zhongjiahao-M
Copy link
Author

@microsoft-github-policy-service agree [company="{didi}"]

@zhongjiahao-M
Copy link
Author

@microsoft-github-policy-service agree company="Microsoft"

@zhongjiahao-M
Copy link
Author

@microsoft-github-policy-service agree

@zhongjiahao-M
Copy link
Author

This is the effect after the repair.
ScreenRecording2025-09-28 01 09 02

@zhongjiahao-M
Copy link
Author

zhongjiahao-M commented Sep 27, 2025

This is the effect after the repair. ScreenRecording2025-09-28 01 09 02
The issues before the repair are shown in the following gif:
ScreenRecording

- 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
Copy link
Collaborator

@Saadnajmi Saadnajmi left a 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.
ZJH and others added 2 commits October 11, 2025 15:18
- 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 Saadnajmi changed the title Fix issue #2706: Add proper constraints for macOS dev loading view fix: Add proper constraints for macOS dev loading view Oct 11, 2025
@zhongjiahao-M
Copy link
Author

@Saadnajmi Thanks for the approval. GitHub still shows “Merging is blocked: A conversation must be resolved before this pull request can be merged.”

@Saadnajmi
Copy link
Collaborator

@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!

@Saadnajmi Saadnajmi merged commit 98eb33d into microsoft:main Oct 14, 2025
67 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe the problem

2 participants