Skip to content

Add 'hidden' option to titleScrollbarSizing #244551

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 6 commits into
base: main
Choose a base branch
from

Conversation

DenisFad
Copy link

Addressing issues #111817, #157045, #185625.

The title scrollbar can be disabled by setting titleScrollbarSizing parameter to hidden.
The default remains unchanged.

Tested on Ubuntu 24.04 machine.

@DenisFad
Copy link
Author

Contributor

@microsoft-github-policy-service agree

@joshspicer joshspicer assigned bpasero and unassigned joshspicer May 2, 2025
@joshspicer
Copy link
Member

@bpasero is this something you're familiar with (looking at some blames)?

@bpasero bpasero assigned benibenj and unassigned bpasero May 3, 2025
@@ -264,11 +265,12 @@ export class MultiEditorTabsControl extends EditorTabsControl {
}

private getTabsScrollbarSizing(): number {
if (this.groupsView.partOptions.titleScrollbarSizing !== 'large') {
return MultiEditorTabsControl.SCROLLBAR_SIZES.default;
if (this.groupsView.partOptions.titleScrollbarSizing === 'hidden') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hidden should not be part of the sizes, but part of the visibility. horizontal should be set to ScrollbarVisibility.Hidden instead of ScrollbarVisibility.Auto here:

horizontal: ScrollbarVisibility.Auto,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first implementation, but in order to not complicate the code I went with this approach, since eventually ScrollbarVisibility.Hidden is converted to 0 size here.

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.

5 participants