mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-09 21:23:43 +00:00
Fix community layer bottom edge case.
This commit is contained in:
@@ -772,6 +772,10 @@ void WrapWidget::setWrap(Wrap wrap) {
|
||||
_wrap = wrap;
|
||||
}
|
||||
|
||||
rpl::producer<bool> WrapWidget::contentTillBottomValue() const {
|
||||
return _contentTillBottom.value();
|
||||
}
|
||||
|
||||
rpl::producer<> WrapWidget::contentChanged() const {
|
||||
return _contentChanges.events();
|
||||
}
|
||||
@@ -1107,6 +1111,7 @@ object_ptr<Ui::RpWidget> WrapWidget::createTopBarSurrogate(
|
||||
void WrapWidget::updateGeometry(
|
||||
QRect newGeometry,
|
||||
bool expanding,
|
||||
bool contentTillBottom,
|
||||
int additionalScroll,
|
||||
int maxVisibleHeight) {
|
||||
auto scrollChanged = (_additionalScroll != additionalScroll);
|
||||
@@ -1115,6 +1120,7 @@ void WrapWidget::updateGeometry(
|
||||
_additionalScroll = additionalScroll;
|
||||
_maxVisibleHeight = maxVisibleHeight;
|
||||
_expanding = expanding;
|
||||
_contentTillBottom = contentTillBottom;
|
||||
|
||||
_content->applyMaxVisibleHeight(maxVisibleHeight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user