Skip to content

Commit

Permalink
Fix voice recording indicator.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jul 21, 2023
1 parent b737012 commit 315b95a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,11 @@ void VoiceRecordBar::initLevelGeometry() {
_send->geometryValue(),
geometryValue(),
static_cast<Ui::RpWidget*>(parentWidget())->geometryValue()
) | rpl::start_with_next([=](QRect send, QRect me, QRect parent) {
const auto mapped = Ui::MapFrom(_outerContainer, this, send);
) | rpl::start_with_next([=](QRect send, auto, auto) {
const auto mapped = Ui::MapFrom(
_outerContainer,
_send->parentWidget(),
send);
const auto center = (send.width() - _level->width()) / 2;
_level->moveToLeft(mapped.x() + center, mapped.y() + center);
}, lifetime());
Expand Down

0 comments on commit 315b95a

Please sign in to comment.