Skip to content

Commit

Permalink
select2 width
Browse files Browse the repository at this point in the history
  • Loading branch information
Motti Bechhofer authored and Motti Bechhofer committed Jun 28, 2018
1 parent 3064eea commit 71b1d90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions dist/js/brutusin-json-forms-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ if (("undefined" === typeof $ || "undefined" === typeof $.fn || "undefined" ===
// https://github.com/select2/select2
if (!("undefined" === typeof $ || "undefined" === typeof $.fn || "undefined" === typeof $.fn.select2) && tagName === "select") {
element.title = "";
element.className += " select2";
element.setAttribute("data-live-search", true);
var options = {};
element.className += " select2";
var options = {
width: '100%'
};
if(schema.enum){
options.tags = true;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/brutusin-json-forms-bootstrap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/js/brutusin-json-forms-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ if (("undefined" === typeof $ || "undefined" === typeof $.fn || "undefined" ===
// https://github.com/select2/select2
if (!("undefined" === typeof $ || "undefined" === typeof $.fn || "undefined" === typeof $.fn.select2) && tagName === "select") {
element.title = "";
element.className += " select2";
element.setAttribute("data-live-search", true);
var options = {};
element.className += " select2";
var options = {
width: '100%'
};
if(schema.enum){
options.tags = true;
}
Expand Down

0 comments on commit 71b1d90

Please sign in to comment.