fix(ui): Fix pum incorrect position in multigrid mode

Refs #12985
This commit is contained in:
Serg Tereshchenko
2021-06-12 11:09:15 +03:00
committed by Björn Linse
parent d09b8ad715
commit 8d23941af8
2 changed files with 48 additions and 1 deletions

View File

@@ -440,7 +440,7 @@ void pum_redraw(void)
}
if (ui_has(kUIMultigrid)) {
const char *anchor = pum_above ? "SW" : "NW";
int row_off = pum_above ? pum_height : 0;
int row_off = pum_above ? -pum_height : 0;
ui_call_win_float_pos(pum_grid.handle, -1, cstr_to_string(anchor),
pum_anchor_grid, pum_row-row_off, pum_col-col_off,
false, pum_grid.zindex);