diff --git a/Telegram/SourceFiles/info/polls/info_polls_results_inner_widget.cpp b/Telegram/SourceFiles/info/polls/info_polls_results_inner_widget.cpp index c8ac40db5..88d0263a6 100644 --- a/Telegram/SourceFiles/info/polls/info_polls_results_inner_widget.cpp +++ b/Telegram/SourceFiles/info/polls/info_polls_results_inner_widget.cpp @@ -579,6 +579,9 @@ ListController *CreateAnswerRows( headerWrap->resize(headerWrap->width(), height); }, header->lifetime()); + auto moreTopWidget = object_ptr(container); + moreTopWidget->resize(0, 0); + const auto moreTop = container->add(std::move(moreTopWidget)); const auto more = container->add( object_ptr>( container, @@ -604,7 +607,7 @@ ListController *CreateAnswerRows( rpl::combine( std::move(visibleTop), headerWrap->geometryValue(), - more->topValue() + moreTop->topValue() ) | rpl::filter([=](int, QRect headerRect, int moreTop) { return moreTop >= headerRect.y() + headerRect.height(); }) | rpl::start_with_next([=](