mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed height of emoji selector in userpic emoji builder.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user