From 910ed7faa90c50b758e6be68bee3a9b5a5a5fd5e Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Tue, 7 Jan 2025 22:48:32 -0800 Subject: [PATCH] fix scrollbar bug --- .../contrib/void/browser/react/src/util/inputs.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx b/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx index 5b7c6d31..fb501900 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx @@ -322,12 +322,14 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars wordWrap: 'off', scrollbar: { + ignoreHorizontalScrollbarInContentHeight: true, alwaysConsumeMouseWheel: false, ...!SHOW_SCROLLBARS ? { vertical: 'hidden', - horizontal: 'hidden', verticalScrollbarSize: 0, - horizontalScrollbarSize: 0, + // horizontal: 'hidden', + // horizontalScrollbarSize: 0, + } : { verticalScrollbarSize: 8, horizontalScrollbarSize: 8,