FIX: edit category tags select-kit inputs width were wrong (#6568)

This commit is contained in:
Joffrey JAFFEUX 2018-11-06 11:30:12 +01:00 committed by GitHub
parent f84255e71b
commit fdad24e2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ export default SelectKitComponent.extend({
@on("didRender")
_setChoicesMaxWidth() {
const width = this.$body().outerWidth(false);
this.$(".choices").css({ maxWidth: width });
if (width > 0) {
this.$(".choices").css({ maxWidth: width });
}
},
@on("didReceiveAttrs")