Fixed top scroll of compose controls on change of height.

This commit is contained in:
23rd 2020-06-01 12:48:42 +03:00
parent 12ad1190ff
commit 61292557bf
1 changed files with 4 additions and 0 deletions

View File

@ -146,7 +146,11 @@ void ScheduledWidget::setupComposeControls() {
_composeControls->height(
) | rpl::start_with_next([=] {
const auto wasMax = (_scroll->scrollTopMax() == _scroll->scrollTop());
updateControlsGeometry();
if (wasMax) {
listScrollTo(_scroll->scrollTopMax());
}
}, lifetime());
_composeControls->cancelRequests(