FIX: positioning issues with notifications-button

This commit is contained in:
Joffrey JAFFEUX
2017-09-10 11:36:57 +02:00
committed by GitHub
parent 1f8695b16a
commit bba26e48a0
4 changed files with 11 additions and 2 deletions
@@ -10,6 +10,8 @@ export default DropdownSelectBoxComponent.extend({
generatedHeadertext: null,
fullWidthOnMobile: true,
@computed
content() {
const items = [
@@ -104,8 +104,7 @@ 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";
options.maxWidth = options.minWidth = "unset";
} else {
const offsetLeft = boundingRect.left;
const bodyWidth = this.$(".select-box-body").outerWidth(false);