mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
This commit extends the `compute_placement()` function in `popovers.js` to take into account height/width of popover as well as positioning preference. If vertical positioning is desired and the popover fits in either 'top/bottom' positions then we don't check for `left/right' positions. Earlier the behavior was to prefer 'left/right'positions over 'top/bottom' positions, which resulted in the emoji picker popping incorrectly to the left.
7.4 KiB
7.4 KiB