mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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([=] {
|
) | rpl::start_with_next([=] {
|
||||||
createSelector(Type::Emoji);
|
createSelector(Type::Emoji);
|
||||||
}, list->lifetime());
|
}, list->lifetime());
|
||||||
|
list->setAllowWithoutPremium(true);
|
||||||
return { list, footer };
|
return { list, footer };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -341,12 +342,14 @@ void EmojiSelector::createSelector(Type type) {
|
||||||
s.width(),
|
s.width(),
|
||||||
st::lineWidth);
|
st::lineWidth);
|
||||||
|
|
||||||
selector.list->resizeToWidth(s.width() - st::boxRadius * 2);
|
const auto listWidth = s.width() - st::boxRadius * 2;
|
||||||
|
selector.list->resizeToWidth(listWidth);
|
||||||
scroll->setGeometry(
|
scroll->setGeometry(
|
||||||
st::boxRadius,
|
st::boxRadius,
|
||||||
rect::bottom(separator),
|
rect::bottom(separator),
|
||||||
selector.list->width() + scrollWidth,
|
selector.list->width() + scrollWidth,
|
||||||
s.height() - rect::bottom(separator));
|
s.height() - rect::bottom(separator));
|
||||||
|
selector.list->setMinimalHeight(listWidth, scroll->height());
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
// Reset all animations.
|
// Reset all animations.
|
||||||
|
|
Loading…
Add table
Reference in a new issue