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

Revert #5872 #6552

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Revert #5872 #6552

merged 2 commits into from
Jan 10, 2022

Conversation

StephenLPeters
Copy link
Contributor

On RS3+ ContentDialog places the whole Content Dialog in the popup that displays it. Before this it would place only the content in the popup. The "BackgroundElement" child element of the ContentDialog is the root of what users actually see as the dialog, and that's what needs to be MaxWidth limited (and it is still correctly limited with the regression). "BackgroundElement" is then centered within the outer ContentDialog, and so when the whole ContentDialog has a size limitation, it can't extend all the way from the left window border to the right. The ContentDialog is left and top aligned within the popup, even though its HorizontalAlignment is Stretch. So "BackgroundElement" is centered within a left-aligned box, making the dialog left aligned from the user's perspective. The regressing change makes the ContentDialog's MaxWidth match BackgroundElement's, and so it's right up against the left edge of the window.

We don't have a good way to work around this behavior from Winui2 so I am reverting the change.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 5, 2022
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…ted test failure in CalendarView. This test is failing across the board of Lab Runs for multiple PR's and I am attributing the error to a change in the lab environment. I don't think it is worth the time to verify where this failure is originating.
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters added area-Dialogs team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 6, 2022
@StephenLPeters StephenLPeters merged commit 053ba01 into main Jan 10, 2022
@StephenLPeters StephenLPeters deleted the user/stpete/5872Revert branch January 10, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Dialogs team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants