Skip to content

fix(editor): handle minimap offset in content width #250315

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xzakharov
Copy link
Contributor

Account for the minimap offset from the viewport edge when calculating the content width, so the minimap does not overlap the content.

Closes: #250072

@xzakharov
Copy link
Contributor Author

@microsoft-github-policy-service agree

@xzakharov xzakharov force-pushed the fix/content-overlapping branch 2 times, most recently from 927d83c to 8592946 Compare June 2, 2025 18:56
Account for the minimap offset from the viewport edge when calculating
the content width, so the minimap does not overlap the content.

Closes: microsoft#250072
Signed-off-by: Oleksandr Zakharov <x.zakharov@proton.me>
@xzakharov xzakharov force-pushed the fix/content-overlapping branch from 8592946 to 8a488cc Compare June 2, 2025 19:24
@aiday-mar aiday-mar self-requested a review June 11, 2025 17:29
@aiday-mar aiday-mar assigned aiday-mar and unassigned alexdima Jun 11, 2025
@aiday-mar
Copy link
Contributor

Hi I just tested this PR. I see the following behavior:

Screen.Recording.2025-06-12.at.11.31.18.mov

When the minimap is toggled and on the right side, the scrollbar is offset by its width from the right side. The scrollbar should not change position on toggling the minimap on and off. I think this happens because you are changing the contentWidth in your PR. I think there should be another way to do this without changing the content width.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimap overlaps content by the width of the vertical scrollbar
3 participants