Skip to content

Conversation

@olegtk
Copy link
Contributor

@olegtk olegtk commented Jul 9, 2025

When Rename is invoked after scrolling up, the adornment is occasionally displayed misplaced out of viewport. See https://developercommunity.visualstudio.com/t/Rename-dialog-opens-up-outside-of-editor/10919621.

This is a regression from #77466, which was a fix for horizontal clipping but also changed vertical positioning to never be negative. Unfortunately, when scrolling up, text view's viewport top and bottom can be negative.
The fix is to remove unnecessary Math.Max on top position value.

@olegtk olegtk requested a review from a team as a code owner July 9, 2025 01:22
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Jul 9, 2025
@dibarbet dibarbet merged commit 6dbcfd2 into dotnet:release/dev17.14 Jul 9, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants