FIX: select-box width was incorrect on mobile
This commit is contained in:
parent
753bf72921
commit
8c3f7d9bbc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue