diff --git a/Telegram/SourceFiles/info/info_content_widget.cpp b/Telegram/SourceFiles/info/info_content_widget.cpp index 0f5d3049e..bec308988 100644 --- a/Telegram/SourceFiles/info/info_content_widget.cpp +++ b/Telegram/SourceFiles/info/info_content_widget.cpp @@ -75,12 +75,13 @@ void ContentWidget::updateControlsGeometry() { if (!_innerWrap) { return; } + _innerWrap->resizeToWidth(width()); + auto newScrollTop = _scroll->scrollTop() + _topDelta; auto scrollGeometry = rect().marginsRemoved( QMargins(0, _scrollTopSkip.current(), 0, 0)); if (_scroll->geometry() != scrollGeometry) { _scroll->setGeometry(scrollGeometry); - _innerWrap->resizeToWidth(_scroll->width()); } if (!_scroll->isHidden()) { diff --git a/Telegram/SourceFiles/info/info_layer_widget.cpp b/Telegram/SourceFiles/info/info_layer_widget.cpp index 046cf0703..de511c6e5 100644 --- a/Telegram/SourceFiles/info/info_layer_widget.cpp +++ b/Telegram/SourceFiles/info/info_layer_widget.cpp @@ -105,10 +105,6 @@ 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