diff --git a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp index 76ba6c160..3bea246b3 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp @@ -1639,7 +1639,15 @@ void ComposeControls::updateControlsGeometry(QSize size) { - _send->width() - _tabbedSelectorToggle->width() - (_botCommandShown ? _botCommandStart->width() : 0); - _field->resizeToWidth(fieldWidth); + { + const auto oldFieldHeight = _field->height(); + _field->resizeToWidth(fieldWidth); + // If a height of the field is changed + // then this method will be called with the updated size. + if (oldFieldHeight != _field->height()) { + return; + } + } const auto buttonsTop = size.height() - _attachToggle->height();