Skip to content

Commit a164e50

Browse files
committed
fix(dashboard): resolve dropdown popup positioning
1 parent 84279ac commit a164e50

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
} from './styles';
6464
import {
6565
DEFAULT_SORT_COMPARATOR,
66+
DROPDOWN_ALIGN_BOTTOM,
6667
EMPTY_OPTIONS,
6768
MAX_TAG_COUNT,
6869
TOKEN_SEPARATORS,
@@ -779,6 +780,7 @@ const Select = forwardRef(
779780
{...props}
780781
showSearch={shouldShowSearch}
781782
ref={ref}
783+
dropdownAlign={DROPDOWN_ALIGN_BOTTOM}
782784
/>
783785
</StyledContainer>
784786
);

superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export const SELECT_ALL_VALUE: RawValue = t('Select All');
3333

3434
export const VIRTUAL_THRESHOLD = 20;
3535

36+
export const DROPDOWN_ALIGN_BOTTOM = {
37+
points: ['tl', 'bl'],
38+
offset: [0, 4],
39+
overflow: { adjustX: 0, adjustY: 1 },
40+
};
41+
3642
export const SELECT_ALL_OPTION = {
3743
value: SELECT_ALL_VALUE,
3844
label: String(SELECT_ALL_VALUE),

0 commit comments

Comments
 (0)