mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fixed height of emoji selector in userpic emoji builder.
This commit is contained in:
parent
7881cb8946
commit
bbd8571c9a
1 changed files with 4 additions and 1 deletions
|
@ -217,6 +217,7 @@ EmojiSelector::Selector EmojiSelector::createEmojiList(
|
|||
) | rpl::start_with_next([=] {
|
||||
createSelector(Type::Emoji);
|
||||
}, list->lifetime());
|
||||
list->setAllowWithoutPremium(true);
|
||||
return { list, footer };
|
||||
}
|
||||
|
||||
|
@ -341,12 +342,14 @@ void EmojiSelector::createSelector(Type type) {
|
|||
s.width(),
|
||||
st::lineWidth);
|
||||
|
||||
selector.list->resizeToWidth(s.width() - st::boxRadius * 2);
|
||||
const auto listWidth = s.width() - st::boxRadius * 2;
|
||||
selector.list->resizeToWidth(listWidth);
|
||||
scroll->setGeometry(
|
||||
st::boxRadius,
|
||||
rect::bottom(separator),
|
||||
selector.list->width() + scrollWidth,
|
||||
s.height() - rect::bottom(separator));
|
||||
selector.list->setMinimalHeight(listWidth, scroll->height());
|
||||
}, lifetime());
|
||||
|
||||
// Reset all animations.
|
||||
|
|
Loading…
Add table
Reference in a new issue