Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alwaysByViewport for @rc-component/trigger #414

Open
VdustR opened this issue Jul 27, 2023 · 2 comments
Open

alwaysByViewport for @rc-component/trigger #414

VdustR opened this issue Jul 27, 2023 · 2 comments

Comments

@VdustR
Copy link

VdustR commented Jul 27, 2023

Any way to force the popup always keep in view for @rc-component/trigger for now?

  • @rc-component/trigger: 1.14.1

Unlike rc-trigger, @rc-component/trigger always try to stick to the target. Is there any option to force it in viewport? I tried htmlRegion options but it doesn't work. This will be very helpful when the content of the popup is larger than the available space.

Thank you~

Reproduction

https://codesandbox.io/s/antd-v5-dropdown-overflow-hz2ymc

Screenshot 2023-07-27 at 3 55 03 PM
@zombieJ
Copy link
Member

zombieJ commented Aug 23, 2023

DatePicker do not config the shiftY, you can ref https://github.com/ant-design/ant-design/blob/master/components/select/useBuiltinPlacements.tsx

@hasakilol
Copy link

hasakilol commented Dec 5, 2023

could you elaborate? or could you give some hint on how to make a <Dropdown /> always stay in view port?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants