Repository: vscode
Issue: Wrong position in minimap on the right for // MARK: 
Labels: bug,editor-minimap

Type: <b>Bug</b>

Steps:
- Show minimap
- Set vertical size to 'fill'
- Set slider to always visible
- Open the terminal (bottom)
Detailed reason why my minimap Marks are not positioned correctly: [this comment here](https://github.com/microsoft/vscode/issues/213236#issuecomment-2183263385)

The position of the Mark is correct only when I set another vertical size of the minimap

Image of where the Slider is in the minimap:
![image](https://github.com/microsoft/vscode/assets/76223552/406ddab4-88fe-4eb3-a6f5-14c35b85d6ea)

versus Where the Mark really is in the code:
![image](https://github.com/microsoft/vscode/assets/76223552/99f48776-ec7e-43e1-a820-67eaa20a4e62)



VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22631
Modes: Unsupported

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400)|
|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)|15.86GB (5.26GB free)|
|Process Argv|--crash-reporter-id 178885c2-5856-4524-8b92-4659f99eb22b|
|Screen Reader|yes|
|VM|0%|
</details><details><summary>Extensions (28)</summary>

Extension|Author (truncated)|Version
---|---|---
ng-template|Ang|17.1.1
vscode-color|ans|0.4.5
houston|ast|0.1.2
vscode-eslint|dba|2.4.4
githistory|don|0.6.20
gitlens|eam|15.0.4
EditorConfig|Edi|0.16.4
vscode-npm-script|eg2|0.3.29
vsc-material-theme|Equ|34.3.1
vsc-material-theme-icons|equ|3.6.0
prettier-vscode|esb|10.4.0
html-snippets|gey|0.2.3
copilot|Git|1.194.0
copilot-chat|Git|0.15.2
vscode-pull-request-github|Git|0.88.1
angular-essentials|joh|17.0.0
Angular2|joh|16.0.1
vscode-peacock|joh|4.2.2
theme-dark-plus-contrast|k3a|1.76.0
debugpy|ms-|2024.6.0
python|ms-|2024.6.0
vscode-pylance|ms-|2024.5.1
vsliveshare|ms-|1.0.5918
material-icon-theme|PKi|5.3.0
glassit|s-n|0.2.6
background|sha|1.2.13
ayu|tea|1.0.5
material-theme|zhu|3.17.2

(11 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vscoreces:30445986
vscod805cf:30301675
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
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelt:31048053
dsvsc021:30996838
01bff139:31013167
pythoncenvpt:31049070
fchga941:31046352
pythonprt:31047983
dwnewjupytercf:31046870
26j00206:31048877

```

</details>

<!-- generated by issue reporter -->