Skip to content
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

fix(VirtualRenderer): fix scrollbar overlap on autocompletion #5713

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

Conversation

xyos
Copy link

@xyos xyos commented Jan 8, 2025

Description of changes:

Ace's VirtualRenderer has an issue where scrollbars sometimes overlap the content on the autocomplete container. The virtual renderer checks the logic for hiding scrollbars using the previous content size, which causes an overlap between the scrollbar and the content (see the attached video). To resolve this, the autosize calculation logic was moved before checking whether to hide the toolbar. This adjustment ensures that the next calculation of hideScrollbars considers the new size (see the second video).

scrollbar overlapping content

Screen.Recording.2025-01-08.at.2.12.50.PM.mov

fixed

Screen.Recording.2025-01-08.at.2.13.36.PM.mov

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Pull Request Checklist:

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.02%. Comparing base (e445aaf) to head (e17e860).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5713   +/-   ##
=======================================
  Coverage   87.02%   87.02%           
=======================================
  Files         598      598           
  Lines       43593    43593           
  Branches     7163     7163           
=======================================
  Hits        37936    37936           
  Misses       5657     5657           
Flag Coverage Δ
unittests 87.02% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marinsokol5
Copy link
Contributor

@nightwing wyt?

@nightwing nightwing changed the title fix(VirtualRenderer): fix toolbar overlap on autocompletion fix(VirtualRenderer): fix scrollbar overlap on autocompletion Jan 8, 2025
@nightwing
Copy link
Member

This fixes the issue with popup, but I think this will cause the horizontal scrollbar to overlap instead, so we need to add some tests to cover all the edge cases of combination of scrollbars appearing after a change, to be sure that we do not introduce regression or infinite re-render loop.

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

Successfully merging this pull request may close these issues.

3 participants