File tree Expand file tree Collapse file tree 3 files changed +1
-36
lines changed
lexical-playground/src/themes Expand file tree Collapse file tree 3 files changed +1
-36
lines changed Original file line number Diff line number Diff line change 627
627
scrollbar-width : none; /* Firefox */
628
628
-ms-overflow-style : none; /* IE and Edge */
629
629
width : 200px ;
630
+ z-index : 4 ;
630
631
}
631
632
.PlaygroundEditorTheme__contextMenu button : first-child {
632
633
border-radius : 8px 8px 0px 0px ;
Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ declare export var SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND: LexicalCommand<{
36
36
option: MenuOption,
37
37
}>;
38
38
39
- declare export function getScrollParent(
40
- element: HTMLElement,
41
- includeHidden: boolean,
42
- ): HTMLElement | HTMLBodyElement;
43
-
44
39
declare export function useBasicTypeaheadTriggerMatch(
45
40
trigger: string,
46
41
options: {minLength?: number, maxLength?: number},
Original file line number Diff line number Diff line change @@ -107,37 +107,6 @@ function isSelectionOnEntityBoundary(
107
107
} ) ;
108
108
}
109
109
110
- // Got from https://stackoverflow.com/a/42543908/2013580
111
- export function getScrollParent (
112
- element : HTMLElement ,
113
- includeHidden : boolean ,
114
- ) : HTMLElement | HTMLBodyElement {
115
- let style = getComputedStyle ( element ) ;
116
- const excludeStaticParent = style . position === 'absolute' ;
117
- const overflowRegex = includeHidden
118
- ? / ( a u t o | s c r o l l | h i d d e n ) /
119
- : / ( a u t o | s c r o l l ) / ;
120
- if ( style . position === 'fixed' ) {
121
- return document . body ;
122
- }
123
- for (
124
- let parent : HTMLElement | null = element ;
125
- ( parent = parent . parentElement ) ;
126
-
127
- ) {
128
- style = getComputedStyle ( parent ) ;
129
- if ( excludeStaticParent && style . position === 'static' ) {
130
- continue ;
131
- }
132
- if (
133
- overflowRegex . test ( style . overflow + style . overflowY + style . overflowX )
134
- ) {
135
- return parent ;
136
- }
137
- }
138
- return document . body ;
139
- }
140
-
141
110
// export {useDynamicPositioning} from './shared/LexicalMenu';
142
111
143
112
export const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND : LexicalCommand < {
You can’t perform that action at this time.
0 commit comments