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

gpui: Add scrollbar_width method to div element #25392

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MrSubidubi
Copy link
Contributor

This PR adds methods to set the scrollbar_width for an element which can be used to reserve space for rendering a scrollbar during layouting of the element.

Future changes can build on this to properly tacke issues like #24623 by reserving space for scrollbars as needed.

In 23f862f, I also swapped out some refactored some related code to make use of the new to_taffy - method I had to add for this change. This adds a level of indirection which might not be desired, happy to revert this change or move it into a seperate PR if requested.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant