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:
Daniil Fadeev 2023-08-31 17:18:01 +03:00 committed by Tim Abbott
parent e5b8731e83
commit c33dac8ab3
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ function get_props_for_popover_centering(popover_props) {
left: reference_offset,
top: reference_offset,
}),
placement: "top",
popperOptions: {
modifiers: [
{