File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/vs/workbench/contrib/accessibility/browser Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ import { IOpenerService } from 'vs/platform/opener/common/opener';
23
23
import { SelectionClipboardContributionID } from 'vs/workbench/contrib/codeEditor/browser/selectionClipboard' ;
24
24
import { getSimpleEditorOptions } from 'vs/workbench/contrib/codeEditor/browser/simpleEditorOptions' ;
25
25
26
- const enum DIMENSION_DEFAULT {
27
- WIDTH = 800
26
+ const enum DEFAULT {
27
+ WIDTH = 800 ,
28
+ TOP = 25
28
29
}
29
30
30
31
export interface IAccessibleContentProvider {
@@ -95,7 +96,7 @@ class AccessibleView extends Disposable {
95
96
96
97
show ( provider : IAccessibleContentProvider ) : void {
97
98
const delegate : IContextViewDelegate = {
98
- getAnchor : ( ) => { return { x : ( window . innerWidth / 2 ) - ( DIMENSION_DEFAULT . WIDTH / 2 ) , y : ( window . innerHeight / 2 ) - ( this . editorWidget . getContentHeight ( ) / 2 ) } ; } ,
99
+ getAnchor : ( ) => { return { x : ( window . innerWidth / 2 ) - ( DEFAULT . WIDTH / 2 ) , y : DEFAULT . TOP } ; } ,
99
100
render : ( container ) => {
100
101
return this . _render ( provider , container ) ;
101
102
} ,
@@ -161,7 +162,7 @@ class AccessibleView extends Disposable {
161
162
}
162
163
163
164
private _layout ( ) : void {
164
- this . _editorWidget . layout ( { width : DIMENSION_DEFAULT . WIDTH , height : this . _editorWidget . getContentHeight ( ) } ) ;
165
+ this . _editorWidget . layout ( { width : DEFAULT . WIDTH , height : this . _editorWidget . getContentHeight ( ) } ) ;
165
166
}
166
167
167
168
private async _getTextModel ( resource : URI ) : Promise < ITextModel | null > {
You can’t perform that action at this time.
0 commit comments