Fixed top scroll of compose controls on change of height.
This commit is contained in:
parent
12ad1190ff
commit
61292557bf
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue