Set forced origin for left userpic menu for constant distance to items.

This commit is contained in:
23rd
2026-02-28 17:58:21 +03:00
committed by John Preston
parent a58047e88a
commit ddb3798ab0
2 changed files with 2 additions and 0 deletions
@@ -2524,6 +2524,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
if (_menu->empty()) {
_menu = nullptr;
} else {
_menu->setForcedOrigin(Ui::PanelAnimation::Origin::BottomLeft);
_menu->popup(e->globalPos());
e->accept();
}
@@ -2935,6 +2935,7 @@ void ListWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
return contextView ? contextView->data().get() : overItem;
}(),
Ui::Menu::CreateAddActionCallback(_menu.get()));
_menu->setForcedOrigin(Ui::PanelAnimation::Origin::BottomLeft);
_menu->popup(e->globalPos());
e->accept();
return;