FIX: top period chooser layout on mobile

This commit is contained in:
Neil Lalonde 2016-08-26 12:38:59 -04:00
parent 33054a7ad3
commit 39de27a4b2

View file

@ -24,8 +24,12 @@ export default Ember.Component.extend(CleansUp, {
if ($(e.target).closest('.period-popup').length) { return; } if ($(e.target).closest('.period-popup').length) { return; }
if (!this.get('showPeriods')) { if (!this.get('showPeriods')) {
const $chevron = this.$('i.fa-caret-down'); if (!this.site.mobileView) {
this.$('#period-popup').css($chevron.position()); const $chevron = this.$('i.fa-caret-down');
this.$('#period-popup').css($chevron.position());
} else {
this.$('#period-popup').css({top: this.$().height()});
}
this.set('showPeriods', true); this.set('showPeriods', true);
this._clickToClose(); this._clickToClose();
} }