Skip to content

Commit

Permalink
Merge branch '2.X' into add-branch-compatibility-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Mansilla authored Jun 17, 2019
2 parents 14e47bb + c91c209 commit 3ccf80d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resources/public/js/Json/Renderer/Constraint.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define(
$dropdown.appendChild($option);
});

var $select2 = jQuery($dropdown).select2();
var $select2 = jQuery($dropdown).select2({dropdownAutoWidth: true});

observeChanges($select2);
};
Expand Down
6 changes: 4 additions & 2 deletions src/Resources/public/js/product/field/table-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ define([

init = function (td, column, value) {
var select2Config = {
placeholder: ' '
placeholder: ' ',
dropdownAutoWidth: true
};
if ('options' in column.config) {
var options = [];
Expand All @@ -178,7 +179,8 @@ define([

init = function (td, column, value) {
var select2Config = {
placeholder: ' '
placeholder: ' ',
dropdownAutoWidth: true
};
if ('options_url' in column.config) {
select2Config.ajax = {
Expand Down

0 comments on commit 3ccf80d

Please sign in to comment.