FIX: select-box width was incorrect on mobile

This commit is contained in:
Joffrey JAFFEUX 2017-09-09 02:41:31 +02:00 committed by GitHub
parent 753bf72921
commit 8c3f7d9bbc
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ export default Ember.Component.extend({
const relativeLeft = this.$().offset().left - $(window).scrollLeft();
options.left = margin - relativeLeft;
options.width = windowWidth - margin * 2;
options.maxWidth = "auto";
options.minWidth = "auto";
} else {
const offsetLeft = boundingRect.left;
const bodyWidth = this.$(".select-box-body").outerWidth(false);