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 (!this.get('showPeriods')) {
if (!this.site.mobileView) {
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._clickToClose();
}