mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Added scroll bar inset below top bar suggestion pill.
This commit is contained in:
@@ -1146,6 +1146,7 @@ void Widget::setupTopBarSuggestions() {
|
||||
_topBarSuggestionPlaceholder->width(),
|
||||
h);
|
||||
}
|
||||
_scroll->setBarTopInset(h);
|
||||
_topBarSuggestionHeightChanged.fire_copy(h);
|
||||
}, _topBarSuggestion->entity()->lifetime());
|
||||
const auto pinToScroll = [=] {
|
||||
@@ -1162,6 +1163,7 @@ void Widget::setupTopBarSuggestions() {
|
||||
} else {
|
||||
_topBarSuggestionPlaceholder = nullptr;
|
||||
_topBarSuggestion = nullptr;
|
||||
_scroll->setBarTopInset(0);
|
||||
_topBarSuggestionHeightChanged.fire(0);
|
||||
}
|
||||
}, lifetime());
|
||||
|
||||
Reference in New Issue
Block a user