mirror of https://github.com/zulip/zulip.git
popover_menus: Fix the API for popover centering.
The offset modifier is tricky and its calculations is related to the placement of the popover. So, to prevent inconsistency, we should fix the placement to some value.
This commit is contained in:
parent
e5b8731e83
commit
c33dac8ab3
|
@ -204,6 +204,7 @@ function get_props_for_popover_centering(popover_props) {
|
|||
left: reference_offset,
|
||||
top: reference_offset,
|
||||
}),
|
||||
placement: "top",
|
||||
popperOptions: {
|
||||
modifiers: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue