-
Notifications
You must be signed in to change notification settings - Fork 33.5k
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
base: main
Are you sure you want to change the base?
Add 'hidden' option to titleScrollbarSizing #244551
Conversation
@microsoft-github-policy-service agree |
@bpasero is this something you're familiar with (looking at some blames)? |
@@ -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') { |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
Addressing issues #111817, #157045, #185625.
The title scrollbar can be disabled by setting
titleScrollbarSizing
parameter tohidden
.The default remains unchanged.
Tested on Ubuntu 24.04 machine.