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

When the cursor is not over any control and not in a row/column, chan… #10230

Conversation

LeafShi1
Copy link
Member

@LeafShi1 LeafShi1 commented Nov 6, 2023

Porting fix from the Out-Of-Process designer

Proposed changes

When the cursor is not over any control and not in a row/column, change insertIndex to the last one.

Root cause of this bug

In the original code, when the cursor is not on any control and not in a row/column, only the IBar is erased without processing the InsertionIndex of the control, so the top control cannot move to the bottom.

Before

The top control cannot be moved to the bottom, it always backs to the original position.
BeforeChange

After

The top control can be moved to the bottom
AfterChange

Test methodology

  • Manually

Test environment(s)

  • .Net 9.0.0-alpha.1.23519.1
Microsoft Reviewers: Open in CodeFlow

@LeafShi1 LeafShi1 requested a review from a team as a code owner November 6, 2023 06:11
@ghost ghost assigned LeafShi1 Nov 6, 2023
@ricardobossan ricardobossan self-requested a review November 6, 2023 09:49
@ricardobossan
Copy link
Contributor

@LeafShi1 LGTM!

@Tanya-Solyanik Tanya-Solyanik merged commit 1d604b5 into dotnet:main Nov 7, 2023
9 checks passed
@ghost ghost added this to the 9.0 Preview1 milestone Nov 7, 2023
@LeafShi1 LeafShi1 deleted the Fixing_FlowLayoutPanel_OnDragOver_UpdateInsertionIndex branch November 8, 2023 00:54
@John-Qiao
Copy link
Member

John-Qiao commented Nov 17, 2023

Verified this PR on latest main 9.0 branch of winforms repo, the top control can be moved to the bottom now.

10230-2.mp4

@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants