Repository: vscode
Issue: Find/replace bar obscures top lines in narrow editors
Labels: ux,polish,editor-find,editor-sticky-scroll

Type: <b>Bug</b>

I'm doing some work on V8, and since the code style is mandated at 80 columns and I'm working on a small laptop monitor, I've configured my VSCode window to have three side-by-side editor groups, each just a little wider than necessary to hold 80 columns of text plus scrollbars/gutters/etc.

This works great most of the time, _except_ if the Ctrl-F find bar is open. Even at its minimum width (see screenshot) it obscures most of the top two lines of the window. If the replace UI is visible as well, it obscures the top four. This causes moderate issues when sticky scroll is operating properly, as it means the outer two/four contexts will be mostly-obscured; it causes major issues when the text being found is in the top two/four lines, because you can't scroll the editor up far enough to see what's being operated on.

![image](https://github.com/microsoft/vscode/assets/605817/b967b83f-071d-4663-a104-5642ebe8d8c0)
![image](https://github.com/microsoft/vscode/assets/605817/c993e07e-464e-41fc-bf5b-396bef69ac2d)

Perhaps, in the same way as you can scroll the document _down_ past the end of a file, you could scroll _up_ past the top if the top lines are obscured? Perhaps the sticky-scroll lines could scoot down when the find/replace bar is open?

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i9-12900H (20 x 2918)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|39.70GB (22.28GB free)|
|Process Argv|--folder-uri vscode-remote://wsl%2Bubuntu/home/dchurch/v8/v8 --crash-reporter-id 8501f115-52d2-449c-9863-9cd416a1d592|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu|
|OS|Linux x64 5.15.146.1-microsoft-standard-WSL2|
|CPUs|12th Gen Intel(R) Core(TM) i9-12900H (20 x 2918)|
|Memory (System)|19.39GB (16.48GB free)|
|VM|0%|
</details><details><summary>Extensions (21)</summary>

Extension|Author (truncated)|Version
---|---|---
gitlens|eam|14.9.0
vscode-clangd|llv|0.1.28
cpptools|ms-|1.19.9
vscode-torque|v8-|1.0.3
clang-format|xav|1.9.0
remotehub|Git|0.62.0
vscode-systemd-support|han|2.2.0
sln-support|log|0.0.1
debug-tracker-vscode|mcu|0.0.15
peripheral-viewer|mcu|1.4.6
remote-containers|ms-|0.354.0
remote-ssh|ms-|0.110.1
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.88.0
vscode-remote-extensionpack|ms-|0.25.0
azure-repos|ms-|0.38.0
remote-explorer|ms-|0.4.3
remote-repositories|ms-|0.40.0
remote-server|ms-|1.5.1
vscode-gn|npc|1.1.0
grammarkdown-language|rbu|0.3.3

(2 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
jchc7451:30973076
gee8j676:31009558
dsvsc021:30996838
f3je6385:31013174
pythoncenvpt:31022790

```

</details>

<!-- generated by issue reporter -->