Commit 6dbcfd2
authored
Fix Rename adornment positioning after scrolling (#79303)
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.File tree
1 file changed
+2
-1
lines changed- src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
0 commit comments