diff --git a/Telegram/SourceFiles/info/info_layer_widget.cpp b/Telegram/SourceFiles/info/info_layer_widget.cpp index 52905efa3..046cf0703 100644 --- a/Telegram/SourceFiles/info/info_layer_widget.cpp +++ b/Telegram/SourceFiles/info/info_layer_widget.cpp @@ -105,10 +105,15 @@ void LayerWidget::setupHeightConsumers() { // New content arrived. _heightAnimated = _heightAnimation.animating(); return; + } else if (height < _desiredHeight + && height < st::columnMinimalWidthMain) { + // Don't animate layer height to a very small one. + return; } std::swap(_desiredHeight, height); if (!height || (_heightAnimated && !_heightAnimation.animating())) { + _heightAnimated = true; setContentHeight(_desiredHeight); } else { _heightAnimated = true;