mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(),
|
_send->geometryValue(),
|
||||||
geometryValue(),
|
geometryValue(),
|
||||||
static_cast<Ui::RpWidget*>(parentWidget())->geometryValue()
|
static_cast<Ui::RpWidget*>(parentWidget())->geometryValue()
|
||||||
) | rpl::start_with_next([=](QRect send, QRect me, QRect parent) {
|
) | rpl::start_with_next([=](QRect send, auto, auto) {
|
||||||
const auto mapped = Ui::MapFrom(_outerContainer, this, send);
|
const auto mapped = Ui::MapFrom(
|
||||||
|
_outerContainer,
|
||||||
|
_send->parentWidget(),
|
||||||
|
send);
|
||||||
const auto center = (send.width() - _level->width()) / 2;
|
const auto center = (send.width() - _level->width()) / 2;
|
||||||
_level->moveToLeft(mapped.x() + center, mapped.y() + center);
|
_level->moveToLeft(mapped.x() + center, mapped.y() + center);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
Loading…
Add table
Reference in a new issue