clarification

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 09:59:12 +02:00
parent 6a4d74d9f8
commit 03508b72b9
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ export default Ember.Component.extend({
const $recentSection = $list.find(".section[data-section='recent']");
const $recentSectionGroup = $recentSection.find(".section-group");
const $recentCategory = $picker.find(".category-icon a[title='recent']").parent();
// we set height to 0 to avoid it being taken into account for scroll position
if(_.isEmpty(this.get("recentEmojis"))) {
$recentCategory.hide();
$recentSection.css("height", 0).hide();