mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
scrollbars
This commit is contained in:
parent
a0672f845d
commit
86346f1bf0
1 changed files with 4 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ import { Checkbox } from '../../../../../../../base/browser/ui/toggle/toggle.js'
|
||||||
|
|
||||||
import { CodeEditorWidget } from '../../../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js'
|
import { CodeEditorWidget } from '../../../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js'
|
||||||
import { useAccessor } from './services.js';
|
import { useAccessor } from './services.js';
|
||||||
|
import { ScrollableElement } from '../../../../../../../base/browser/ui/scrollbar/scrollableElement.js';
|
||||||
|
|
||||||
|
|
||||||
// type guard
|
// type guard
|
||||||
|
|
@ -202,7 +203,7 @@ export const VoidSelectBox = <T,>({ onChangeSelection, onCreateInstance, selectB
|
||||||
onCreateInstance?: ((instance: SelectBox) => void | IDisposable[]);
|
onCreateInstance?: ((instance: SelectBox) => void | IDisposable[]);
|
||||||
selectBoxRef?: React.MutableRefObject<SelectBox | null>;
|
selectBoxRef?: React.MutableRefObject<SelectBox | null>;
|
||||||
options: readonly { text: string, value: T }[];
|
options: readonly { text: string, value: T }[];
|
||||||
className?:string;
|
className?: string;
|
||||||
}) => {
|
}) => {
|
||||||
const accessor = useAccessor()
|
const accessor = useAccessor()
|
||||||
const contextViewProvider = accessor.get('IContextViewService')
|
const contextViewProvider = accessor.get('IContextViewService')
|
||||||
|
|
@ -319,8 +320,8 @@ export const VoidCodeEditor = ({ initValue, language }: { initValue: string, lan
|
||||||
|
|
||||||
scrollbar: {
|
scrollbar: {
|
||||||
alwaysConsumeMouseWheel: false,
|
alwaysConsumeMouseWheel: false,
|
||||||
vertical: 'hidden',
|
// vertical: 'hidden',
|
||||||
horizontal: 'hidden',
|
// horizontal: 'hidden',
|
||||||
verticalScrollbarSize: 8,
|
verticalScrollbarSize: 8,
|
||||||
horizontalScrollbarSize: 8,
|
horizontalScrollbarSize: 8,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue