mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix voice recording indicator.
This commit is contained in:
parent
b7370127ff
commit
315b95a214
1 changed files with 5 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue