mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-14 07:23:46 +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());
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: 071b8479eb...d99a9b31d0
Reference in New Issue
Block a user