mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
compute_placement utilizes the dimensions of the viewport, viewport location of an element, and dimensions of an element to determine if a popover will fit horizontally and/or veritically given its orientation. The default placement is now viewport_center, which displays the popover, without an arrow, in the fixed center of the viewport. This should be particularly useful for hotspots on mobile or large popovers that contain a lot of content. The property hotspot.location.popover can be optionally set to fix the orientation of a popover (most likely to VIEWPORT_CENTER).
13 KiB
13 KiB