Skip to content

Fixing *-defs width calculation#7296

Merged
dipeshmsft merged 1 commit intomainfrom
grid-hang-fix
Dec 28, 2022
Merged

Fixing *-defs width calculation#7296
dipeshmsft merged 1 commit intomainfrom
grid-hang-fix

Conversation

@Kuldeep-MS
Copy link
Contributor

@Kuldeep-MS Kuldeep-MS commented Nov 17, 2022

Fixes #5231

Description

A calculation to see how much width has been allocated to *-columns produces a result that's less than the available width by a tiny amount, due to floating-point drift. This causes a loop to continue when it shouldn't, leading to infinite loop. In such case adding that tiny remaining width to a column resolved as "min".

Customer Impact

VS XAML Designer freezes when resizing the column width.

Regression

No

Testing

Done

Risk

NA

Microsoft Reviewers: Open in CodeFlow

@Kuldeep-MS Kuldeep-MS requested a review from a team as a code owner November 17, 2022 09:32
@ghost ghost assigned Kuldeep-MS Nov 17, 2022
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Nov 17, 2022
@ghost ghost requested review from dipeshmsft and singhashish-wpf November 17, 2022 09:33
@dipeshmsft dipeshmsft merged commit cfec0cc into main Dec 28, 2022
@dipeshmsft dipeshmsft deleted the grid-hang-fix branch December 28, 2022 05:32
@ghost ghost locked as resolved and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hang when modifying ColumnDefinition.Width

3 participants