mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix members dropdown and chat info menu position.
This commit is contained in:
parent
0e2c282476
commit
7f7318c0bf
2 changed files with 3 additions and 3 deletions
|
@ -3679,7 +3679,7 @@ void HistoryWidget::onMembersDropdownShow() {
|
|||
_membersDropdown->resizeToWidth(st::membersInnerWidth);
|
||||
|
||||
_membersDropdown->setMaxHeight(countMembersDropdownHeightMax());
|
||||
_membersDropdown->moveToLeft(0, 0);
|
||||
_membersDropdown->moveToLeft(0, _topBar->height());
|
||||
_membersDropdown->setHiddenCallback([this] { _membersDropdown.destroyDelayed(); });
|
||||
}
|
||||
_membersDropdown->otherEnter();
|
||||
|
|
|
@ -108,7 +108,7 @@ void TopBarWidget::showMenu() {
|
|||
if (auto main = App::main()) {
|
||||
if (auto peer = main->peer()) {
|
||||
if (!_menu) {
|
||||
_menu.create(App::main());
|
||||
_menu.create(parentWidget());
|
||||
_menu->setHiddenCallback([that = weak(this), menu = _menu.data()] {
|
||||
menu->deleteLater();
|
||||
if (that && that->_menu == menu) {
|
||||
|
@ -130,7 +130,7 @@ void TopBarWidget::showMenu() {
|
|||
App::main()->fillPeerMenu(peer, [this](const QString &text, base::lambda<void()> callback) {
|
||||
return _menu->addAction(text, std::move(callback));
|
||||
}, false);
|
||||
_menu->moveToRight(st::topBarMenuPosition.x(), st::topBarMenuPosition.y());
|
||||
_menu->moveToRight((parentWidget()->width() - width()) + st::topBarMenuPosition.x(), st::topBarMenuPosition.y());
|
||||
_menu->showAnimated(Ui::PanelAnimation::Origin::TopRight);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue