ncstate-sat/popover

Smoothly realign popover when size changes

Opened this issue · 0 comments

I have a popover that loads content after it's opened. When the content is loaded, the popover resizes, and I used SatPopover.realign to realign it with the trigger. However, the user experience is not good because the popover alignment changes after the size changes.

See this example:

https://stackblitz.com/edit/ncstate-sat-popover-issues-euqro6

Is there a way to synchronize the resize with the realignment, and ideally animate them together? Even without animations, it would be great to have the realignment occur in the same frame as the resize.