diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index db6a3c46a..d470a5041 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1250,6 +1250,9 @@ void HistoryWidget::orderWidgets() { if (_contactStatus) { _contactStatus->raise(); } + if (_groupCallBar) { + _groupCallBar->raise(); + } if (_pinnedBar) { _pinnedBar->raise(); } diff --git a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp index 497120ad6..08daddd65 100644 --- a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp @@ -20,9 +20,9 @@ namespace Ui { GroupCallBar::GroupCallBar( not_null parent, rpl::producer content) - : _wrap(parent, object_ptr(parent)) - , _inner(_wrap.entity()) - , _shadow(std::make_unique(_wrap.parentWidget())) { +: _wrap(parent, object_ptr(parent)) +, _inner(_wrap.entity()) +, _shadow(std::make_unique(_wrap.parentWidget())) { _wrap.hide(anim::type::instant); _shadow->hide(); @@ -89,6 +89,13 @@ void GroupCallBar::setupInner() { ) | rpl::map([] { return rpl::empty_value(); }) | rpl::start_to_stream(_barClicks, _inner->lifetime()); + + + _wrap.geometryValue( + ) | rpl::start_with_next([=](QRect rect) { + updateShadowGeometry(rect); + updateControlsGeometry(rect); + }, _inner->lifetime()); } void GroupCallBar::paint(Painter &p) {