mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:15:47 +08:00
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
Block a user