diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 4ed3149a3..0da2a0ccd 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -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(); diff --git a/Telegram/SourceFiles/window/top_bar_widget.cpp b/Telegram/SourceFiles/window/top_bar_widget.cpp index 81a1f6f3a..01e5ae3e0 100644 --- a/Telegram/SourceFiles/window/top_bar_widget.cpp +++ b/Telegram/SourceFiles/window/top_bar_widget.cpp @@ -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 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); } }