Skip to content

Commit

Permalink
fix(module:cascader): fix cascader position (#5148)
Browse files Browse the repository at this point in the history
* fix(module:cascader): fix cascader position

close #5102

* fix: fix cascader style
  • Loading branch information
wendell authored Apr 26, 2020
1 parent 90d2ec5 commit 7870e67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/cascader/style/entry.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import './index.less';
@import './patch.less';
// style dependencies
@import '../../empty/style/index.less';
@import '../../input/style/index.less';
3 changes: 3 additions & 0 deletions components/cascader/style/patch.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.ant-cascader-menus {
position: relative;
}
3 changes: 2 additions & 1 deletion components/core/overlay/overlay-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const POSITION_MAP: { [key: string]: ConnectionPositionPair } = {
};

export const DEFAULT_TOOLTIP_POSITIONS = [POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left];
export const DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.topLeft];

export const DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topLeft, POSITION_MAP.topRight];

export const DEFAULT_MENTION_TOP_POSITIONS = [
new ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'bottom' }),
Expand Down

0 comments on commit 7870e67

Please sign in to comment.