This is an automated email from the ASF dual-hosted git repository.
msyavuz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 43653d1fa1 fix(dashboard): resolve dropdown popup positioning (#36963)
43653d1fa1 is described below
commit 43653d1fa1bc4b0bd6b4cd66388fc1a111194dd7
Author: Reynold Morel <[email protected]>
AuthorDate: Wed Jan 28 10:01:37 2026 -0400
fix(dashboard): resolve dropdown popup positioning (#36963)
---
.../packages/superset-ui-core/src/components/Select/Select.tsx | 2 ++
.../packages/superset-ui-core/src/components/Select/constants.ts | 8 +++++++-
.../packages/superset-ui-core/src/components/Select/types.ts | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git
a/superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx
b/superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx
index 0c6a32a704..3f6ecb379b 100644
---
a/superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx
+++
b/superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx
@@ -64,6 +64,7 @@ import {
} from './styles';
import {
DEFAULT_SORT_COMPARATOR,
+ DROPDOWN_ALIGN_BOTTOM,
EMPTY_OPTIONS,
MAX_TAG_COUNT,
TOKEN_SEPARATORS,
@@ -777,6 +778,7 @@ const Select = forwardRef(
optionRender={option => <Space>{option.label ||
option.value}</Space>}
oneLine={oneLine}
css={props.css}
+ dropdownAlign={DROPDOWN_ALIGN_BOTTOM}
{...props}
showSearch={shouldShowSearch}
ref={ref}
diff --git
a/superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
b/superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
index 950ae40ec7..4132870b68 100644
---
a/superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
+++
b/superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
@@ -19,7 +19,7 @@
import { LabeledValue as AntdLabeledValue } from 'antd/es/select';
import { t } from '@apache-superset/core';
import { rankedSearchCompare } from '../../utils/rankedSearchCompare';
-import { RawValue } from './types';
+import { RawValue, SelectProps } from './types';
export const MAX_TAG_COUNT = 4;
@@ -33,6 +33,12 @@ export const SELECT_ALL_VALUE: RawValue = t('Select All');
export const VIRTUAL_THRESHOLD = 20;
+export const DROPDOWN_ALIGN_BOTTOM: SelectProps['dropdownAlign'] = {
+ points: ['tl', 'bl'],
+ offset: [0, 4],
+ overflow: { adjustX: 0, adjustY: 1 },
+};
+
export const SELECT_ALL_OPTION = {
value: SELECT_ALL_VALUE,
label: String(SELECT_ALL_VALUE),
diff --git
a/superset-frontend/packages/superset-ui-core/src/components/Select/types.ts
b/superset-frontend/packages/superset-ui-core/src/components/Select/types.ts
index 2f52035b43..7d38dba9d8 100644
--- a/superset-frontend/packages/superset-ui-core/src/components/Select/types.ts
+++ b/superset-frontend/packages/superset-ui-core/src/components/Select/types.ts
@@ -71,6 +71,7 @@ export type AntdExposedProps = Pick<
| 'virtual'
| 'getPopupContainer'
| 'menuItemSelectedIcon'
+ | 'dropdownAlign'
>;
export type SelectOptionsType = Exclude<AntdProps['options'], undefined>;