Fixed visual glitch in Replies section with tall input field.

This commit is contained in:
23rd 2020-12-13 20:12:34 +03:00 committed by John Preston
parent bb4be4f3dd
commit de6b460754
1 changed files with 9 additions and 1 deletions

View File

@ -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();