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 639
639
scrollbar-width : none; /* Firefox */
640
640
-ms-overflow-style : none; /* IE and Edge */
641
641
width : 200px ;
642
+ z-index : 4 ;
642
643
}
643
644
.PlaygroundEditorTheme__contextMenu button : first-child {
644
645
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 @@ -106,37 +106,6 @@ function isSelectionOnEntityBoundary(
106
106
} ) ;
107
107
}
108
108
109
- // Got from https://stackoverflow.com/a/42543908/2013580
110
- export function getScrollParent (
111
- element : HTMLElement ,
112
- includeHidden : boolean ,
113
- ) : HTMLElement | HTMLBodyElement {
114
- let style = getComputedStyle ( element ) ;
115
- const excludeStaticParent = style . position === 'absolute' ;
116
- const overflowRegex = includeHidden
117
- ? / ( a u t o | s c r o l l | h i d d e n ) /
118
- : / ( a u t o | s c r o l l ) / ;
119
- if ( style . position === 'fixed' ) {
120
- return document . body ;
121
- }
122
- for (
123
- let parent : HTMLElement | null = element ;
124
- ( parent = parent . parentElement ) ;
125
-
126
- ) {
127
- style = getComputedStyle ( parent ) ;
128
- if ( excludeStaticParent && style . position === 'static' ) {
129
- continue ;
130
- }
131
- if (
132
- overflowRegex . test ( style . overflow + style . overflowY + style . overflowX )
133
- ) {
134
- return parent ;
135
- }
136
- }
137
- return document . body ;
138
- }
139
-
140
109
// export {useDynamicPositioning} from './shared/LexicalMenu';
141
110
142
111
export const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND : LexicalCommand < {
You can’t perform that action at this time.
0 commit comments