rc-trigger cause popup window to glitch when there not enough width size
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:
- Navigate to the portal example in the demo using rc-trigger v2.2.5.
- Resize the window so that the popup appears slightly off-screen.
- 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.
@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
@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
@zombieJ @afc163 @MadCcc could someone look into this issue?