trigger icon indicating copy to clipboard operation
trigger copied to clipboard

alwaysByViewport for @rc-component/trigger

Open VdustR opened this issue 1 year ago • 2 comments

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

VdustR avatar Jul 27 '23 08:07 VdustR

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

zombieJ avatar Aug 23 '23 07:08 zombieJ

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

hasakilol avatar Dec 05 '23 09:12 hasakilol