Fixed inline message restriction width

This commit is contained in:
RadRussianRus 2019-10-07 18:55:39 +03:00 committed by John Preston
parent 261a83eda3
commit 883d6dcede

View file

@ -97,6 +97,7 @@ void Inner::checkRestrictedPeer() {
_restrictedLabel.create(this, *error, st::stickersRestrictedLabel);
_restrictedLabel->show();
_restrictedLabel->move(st::inlineResultsLeft - st::buttonRadius, st::stickerPanPadding);
_restrictedLabel->resizeToNaturalWidth(width() - (st::inlineResultsLeft - st::buttonRadius) * 2);
if (_switchPmButton) {
_switchPmButton->hide();
}