trigger icon indicating copy to clipboard operation
trigger copied to clipboard

rc-trigger cause popup window to glitch when there not enough width size

Open yhy-1 opened this issue 1 year ago • 3 comments

When the popup window do not have enough space it causes the popup to glitch. You can observe this behavior in the video linked below:

https://github.com/user-attachments/assets/5fe0b5e6-a179-403b-a1c5-bb1c32ca7739

Step to reproduce:

  1. Navigate to the portal example in the demo using rc-trigger v2.2.5.
  2. Resize the window so that the popup appears slightly off-screen.
  3. Watch for the glitch in the popup during the transition. It looks like the style are being recalculate.

This is causing issue because when working with microfrontend, each microfrontend has it designed container. The glitch happens when the popup extends outside the container of the microfrontend that triggers it, leading to this unexpected behavior.

yhy-1 avatar Dec 02 '24 21:12 yhy-1

@zombieJ @afc163 Hi we are running into this really weird bug. Can you look into this? It didn't seem like this was a problem when using antd v4 which was using rc-trigger v5.3.4

yhy-1 avatar Dec 02 '24 21:12 yhy-1

@MadCcc could someone look into this issue? This results in this behavior in the dropdown which makes it unuseable.

https://github.com/user-attachments/assets/528230de-8614-472e-bcb2-f495cf1e665b

yhy-1 avatar Dec 04 '24 19:12 yhy-1

@zombieJ @afc163 @MadCcc could someone look into this issue?

yhy-1 avatar Jan 07 '25 17:01 yhy-1